PDA

View Full Version : What means GL_COMPILE



Mnemno
07-12-2001, 05:21 AM
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

RedZen
07-12-2001, 05:25 AM
It's a display list. And you can precompile display lists.

chennes
07-12-2001, 07:21 AM
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