Is re-use of display lists like this ok ?

Sorry - left Red Book at home

If I do a genlists (1) just the once is it valid to reuse/regenerate the display list by just calling

glNewList(mylist, GL_COMPILE);
drawstuff();
glEndList();

every time I want to ?

I can’t see any other way to recreate a display list so I think I’m on solid ground…

ta ta

Rob J

as long as you delete it first. (well you could do it, but why you’d want to…)

Rob, you don’t need to delete and recreate the display list number.

It is perfectly valid to call glNewList() to recreate the display list. If the list contained something, it is simply erased.

Regards.

Eric