Results 1 to 2 of 2

Thread: memory checking between glNewList() and glEndList(

  1. #1
    Senior Member Regular Contributor
    Join Date
    Aug 2000
    Location
    Los Angeles, CA, USA
    Posts
    101

    memory checking between glNewList() and glEndList(

    Hi,

    I have to crate lots of lists. Sometimes memory is an issue. Memory may run out to store lists. Is there a way to know when this happens between the following two commands? Any help is much apprecaited.

    glNewList(oglList, GL_COMPILE);
    .... // store opengl lists
    glEndList();

    JD

  2. #2
    Senior Member Frequent Contributor scratt's Avatar
    Join Date
    May 2008
    Location
    Thailand
    Posts
    555

    Re: memory checking between glNewList() and glEndL

    GL_OUT_OF_MEMORY is generated if there is insufficient
    memory to compile the display list. If the GL version is 1.1
    or greater, no change is made to the previous contents of
    the display list, if any, and no other change is made to the
    GL state. (It is as if no attempt had been made to create
    the new display list.)
    http://www.opengl.org/documentation/...l/newlist.html

Similar Threads

  1. Drawing NURBS by calling glNewList...glEndList
    By clarkyeah in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 09-12-2010, 07:43 AM
  2. I need help with glnewlist and lists in general!
    By bansheeogl in forum OpenGL: Basic Coding
    Replies: 5
    Last Post: 05-09-2005, 04:19 AM
  3. glCallList() and glNewList()
    By in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 02-01-2005, 05:59 PM
  4. glNewList
    By kosta_m in forum OpenGL: Basic Coding
    Replies: 2
    Last Post: 11-22-2002, 03:16 PM
  5. glGenTextures withing glNewList() glEndList()
    By Uther_Pendragon in forum OpenGL: Advanced Coding
    Replies: 4
    Last Post: 07-04-2002, 01:46 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