What means GL_COMPILE

I hope somebody can tell me what this two lines of Code really means.

GLint lid = glGenLists(1);

Thanks a lot

It’s a display list. And you can precompile display lists.

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.