Results 1 to 2 of 2

Thread: Dynamic VS Static Lists

  1. #1
    Junior Member Newbie
    Join Date
    Jul 2001

    Dynamic VS Static Lists

    I have an on-screen information panel that shows some information about the displayed data.

    It works fine when I build it everytime I call ondraw(). But it does not even show up when I tried to create it once and just call the list in ondraw().

    Basically, all I did was wrap the creation in a class and build the list as below. Note that the "// create the list" part is exactly as the building of the list.

    I thought that the class does not see the context. But I made sure that the currentContext is set right when the list is being build.

    Any Ideas ??? Please ..
    GLuint list;
    list = glGenLists( 1 );
    glNewList( list, GL_COMPILE );
    // create the list
    m_object list;

  2. #2
    Senior Member OpenGL Pro
    Join Date
    Oct 2000
    Fargo, ND

    Re: Dynamic VS Static Lists

    Are you building the list AFTER the OpenGL context has been created? This could be a problem if, for instance, you put the list creation in the constructor of a class and are using a global instance of that class.
    Software Engineer and OpenGL enthusiast

Similar Threads

  1. Replies: 4
    Last Post: 08-27-2005, 05:40 AM
  2. using dynamic index with static vertex-array with VBO// Normals
    By mcbastian in forum OpenGL: Advanced Coding
    Replies: 1
    Last Post: 10-19-2004, 04:26 PM
  3. Per vertex static color and dynamic alpha
    By 3dguy in forum OpenGL: Advanced Coding
    Replies: 6
    Last Post: 04-19-2004, 02:22 PM
  4. VBO: mixing static and dynamic buffers
    By markfcsl in forum OpenGL: Advanced Coding
    Replies: 13
    Last Post: 03-29-2003, 03:21 PM
  5. Static geometry dynamic texture coords
    By sb in forum OpenGL: Advanced Coding
    Replies: 2
    Last Post: 02-03-2003, 11:10 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
Proudly hosted by Digital Ocean