OpenGLComponent private vars


Is it possible to modify the “OpenGLComponent” such that “private” parts become protected?

Sometime I need a “main” OpenGL context where to store all images, vertex buffers, GLSL shaders and so on. And all other OpenGLComponents will share the context with it (see function shareWith).

Actually the context is destroyed/built if its top level window is visible, but I would like to create an OpenGL context without a “container” window.



I don’t think it’s possible to create a context without having a window associated with it - certainly not on all platforms…