PDA

View Full Version : overlay QGLContext



showhand
24th November 2006, 02:11
Hi, all

I initilized the main opengl context with QGLWidget. I want to create another context in the main context.

Does anybody can give some code examples or useful URL to teach me using "makeOverlayCurrent(), updateOverlayGL(), initializeOverlayGL(), paintOverlayGL(), etc."

Thanks for any replay!

discostu
9th April 2007, 20:24
Did you ever figure this out? I've made functions for paintOverlayGL, initializeOverlayGL, etc. And tested to make sure hasOpenGLOverlays is true and did setOverlay true, but still none of the overlay functions get called.

I have yet to find an example for this with Qt4

thanks.

minimoog
10th April 2007, 00:27
Support vo Opengl overlay context depends on the drivers and platform.

discostu
10th April 2007, 16:51
Yes, but there is an boolean attribute that tells whether the current system supports overlays and it said true on my MacBook Pro (intel mac).