Classes with constructors that call opengl functions now go through the Window to perform safe initialization