PDA

View Full Version : display list's query



coda
12-09-2003, 03:50 PM
if after i created a display list and decided not to use it, will the display list still be stored in memory?

cwc36
12-09-2003, 05:15 PM
Hi,

Yes! the display list woundn't free from the memory until you call this function to delete the list.

//list= name of the display list
//range = number of the display list

void glDeleteLists( GLuint list, GLsizei range);

Hope it can help.



[This message has been edited by cwc36 (edited 12-09-2003).]

maximian
12-10-2003, 08:55 AM
Alternatively: if you do not wish to delete the id generated glGenList, then also

glNewList
..do nothing here
glEndList

Will empty out the list and should free up the memory, while keeping the id