mrjt Messages: 705 Registered: March 2007 Location: London
Contributor
1- Yes
2- When Painting begins wglMakeCurrent is called to make the GL context associated with the GLCtrl active. wglGetContext can determine which context is active, but this is really only useful for checking that you have a context active at all (modal windows can change the context for instance).
3- wglMakeCurrent. This is not currently exposed by the standard GLCtrl. I suggest just branching GLCtrl as I did in the package I posted in the other thread:
There will be other stuff you want to add also.
4- You will have to syncronise as OpenGL (ASFAIK) will only accept calls from the main thread.
5- Yes
6- Design decision. Store the controls globally, create an event system, use callbacks.
7- As above.