Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Community » Newbie corner » GLCtrl and Docking: do they work together as expected?
Re: GLCtrl and Docking: do they work together as expected? [message #28777 is a reply to message #28738] Thu, 16 September 2010 10:45 Go to previous messageGo to previous message
mrjt is currently offline  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:
    void     StartDC() const                    { wglMakeCurrent(GetDC(), GetRC()); }
    void     StopDC() const                    { wglMakeCurrent(NULL, NULL); }
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.
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: GLCtrl: does it support multisamplig feature?
Next Topic: Visibility of objects.
Goto Forum:
  


Current Time: Wed Jun 05 13:55:41 CEST 2024

Total time taken to generate the page: 0.02901 seconds