PDA

View Full Version : How can I make a List



JnZ
09-10-2001, 09:34 PM
How to use glNewList. I mean I want to save a object in that form.

1. Save object A in glNewList
2. Render glList

harsman
09-11-2001, 03:12 AM
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.

JnZ
09-11-2001, 09:41 PM
I'm mean glNewList and stuff?

Damon
09-11-2001, 10:24 PM
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.

cyclone
09-12-2001, 03:25 AM
1) create the display list

GLuint dlist;

glGenLists(1, &dlist);
glNewList(dlist, GL_COMPILE);
DrawYourObjectHere();
glEndList();

2) display your object using display list

glCallList(dlist);


Very easy, no ? http://www.opengl.org/discussion_boards/ubb/smile.gif

@+
Cyclone