PDA

View Full Version : problem with QT-openGL-display list



nicoo
09-26-2009, 09:08 AM
Dear all,
I have to create an application in c++ with more classes.
In one class I create a GLuint list with glNewList(list,1).
Can I call glCallList(list) in another class?

thank you

todayman
09-26-2009, 11:55 AM
So long as the active context is the one with the desired display list, that should work fine. If you are drawing in a different context, then you need to pass one context to the other when you create the second one for them to share listls and textures. Check out the Qt docs for QGLContext.