Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 2 of 2

Thread: problem with QT-openGL-display list

  1. #1
    Junior Member Newbie
    Join Date
    Sep 2009
    Posts
    2

    problem with QT-openGL-display list

    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

  2. #2
    Junior Member Regular Contributor
    Join Date
    Dec 2008
    Location
    USA
    Posts
    135

    Re: problem with QT-openGL-display list

    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •