View Full Version : glCallList trouble :-)

11-10-2002, 12:15 PM
I have trouble with the glCallList :-(.
I read asc (3D-Studio) code from a file in my programm and use the GlNewList(..) and everything looks fine, the object appears when i use glCallList(..), but when i try to load the next object, the new object is not visible :-(. Without displaylist it works fine! Can i create a displaylist from any procedure or must i use the OpenGL init() procedure? Sorry about my bad english but its to late :-) and im tired.

11-10-2002, 07:23 PM
You can create a display list as long as you have a GL context (a window is already created) and you're not in a glBegin()/glEnd() sequence. Remember some commands cannot be stored in a display list, for example client commands or commands to retrieve the OpenGL state.