Results 1 to 3 of 3

Thread: What means GL_COMPILE

  1. #1
    Junior Member Newbie
    Join Date
    Jul 2001
    Posts
    3

    What means GL_COMPILE

    Hi
    I hope somebody can tell me what this two lines of Code really means.
    ..
    ..
    ..
    GLint lid = glGenLists(1);
    glNewList(lid,GL_COMPILE);
    ..
    ..

    Thanks a lot

  2. #2
    Member Contributor
    Join Date
    Jul 2001
    Location
    South Africa
    Posts
    52

    Re: What means GL_COMPILE

    It's a display list. And you can precompile display lists.

  3. #3
    Senior Member Regular Contributor
    Join Date
    Nov 2000
    Location
    State College, PA
    Posts
    186

    Re: What means GL_COMPILE

    The GL_COMPILE is as opposed to GL_COMPILE_AND_EXECUTE. In COMPILE, the commands are just stored in the list. In COMPILE_AND_EXECUTE they are stored in the list, but they are also executed in immediate mode.

    Chris

Similar Threads

  1. DisplayList (GL_COMPILE crash on glDrawElements)
    By jsmithown in forum OpenGL: Basic Coding
    Replies: 2
    Last Post: 10-28-2010, 01:08 PM
  2. Thread friendly GL_COMPILE through gl{Pause/Resume}List()
    By BoeroBoy in forum OpenGL: General
    Replies: 23
    Last Post: 01-29-2007, 03:00 AM
  3. What does it means??
    By M/\dm/\n in forum OpenGL: Advanced Coding
    Replies: 5
    Last Post: 01-22-2003, 09:59 AM
  4. GL_COMPILE vs. COMPILE AND EXECUTE ?
    By Anonymous Coward in forum OpenGL: Basic Coding
    Replies: 4
    Last Post: 08-09-2000, 05:49 PM
  5. GL_COMPILE_AND_EXECUTE / GL_COMPILE
    By Eric in forum OpenGL: Advanced Coding
    Replies: 6
    Last Post: 04-12-2000, 08:48 PM

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