Results 1 to 3 of 3

Thread: # of display lists

  1. #1
    Member Contributor
    Join Date
    Feb 2000
    Location
    Gothenburg, Sweden
    Posts
    68

    # of display lists

    Hello

    I was wondering if there is any limit to the number of display lists you can have. Of course you can't have billions but does anyone have a clue if I maybe could have 10,000 or something like that? I've looked in the red book but can't find anything about it. Maybe the memory sets the limit?

    Osku

  2. #2
    Senior Member Regular Contributor
    Join Date
    Sep 2000
    Location
    Austin, TX, USA
    Posts
    142

    Re: # of display lists

    From the Redbook, page 266:

    GLuint glGenLists(GLsizei range);

    "Zero is returned if the requested number of indices isn't available, or if range is zero."
    They also mention nesting on page 270:
    "...the limit is 64, but it might be higher, depending on the implementation. To determine the nesting limit for your implementation of OpenGL, call
    glGetIntegerv(GL_MAX_LIST_NESTING, GLint *data);
    There appears to be no identifier for querying the maximum number of sequential display lists, but you could tinker with glGenLists until it returns zero, and see if that value suffices.

    Glossifah

  3. #3
    Senior Member OpenGL Guru Relic's Avatar
    Join Date
    Apr 2000
    Posts
    2,450

    Re: # of display lists

    GLuint glGenLists(GLsizei range); indicates the maximum number of simultaneously defined display lists is 2^32-1 (because 0 doesn't count).
    Now, if you ever reach this limit is system(memory!) dependent.


    [This message has been edited by Relic (edited 01-29-2001).]

Similar Threads

  1. cg & display lists
    By nib in forum OpenGL: Advanced Coding
    Replies: 11
    Last Post: 11-04-2006, 07:22 PM
  2. Display Lists
    By azcoder in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 06-01-2002, 06:42 AM
  3. display lists inside display lists...
    By architekt in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 05-22-2002, 08:55 PM
  4. Display Lists
    By Robin Forster in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 12-14-2001, 06:11 PM
  5. display lists
    By frogger in forum OpenGL: Advanced Coding
    Replies: 3
    Last Post: 07-27-2000, 10:03 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