How to use glNewList. I mean I want to save a object in that form.
- Save object A in glNewList
- Render glList
How to use glNewList. I mean I want to save a object in that form.
You can’t. There’s no file format for display lists. YOu have to use your own format, or some existing one like 3ds. There are many tutorials on this on the web, most are for loading ASE, 3ds and OBJ formats.
I’m mean glNewList and stuff?
Originally posted by JnZ:
How to use glNewList. I mean I want to save a object in that form.
I think http://nehe.gamedev.net/tutorials/lesson12.asp has what you’re looking for.
GLuint dlist;
glGenLists(1, &dlist);
glNewList(dlist, GL_COMPILE);
DrawYourObjectHere();
glEndList();
glCallList(dlist);
Very easy, no ?
@+
Cyclone