How can I make a List

How to use glNewList. I mean I want to save a object in that form.

  1. Save object A in glNewList
  2. Render glList

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.

  1. create the display list

GLuint dlist;

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

  1. display your object using display list

glCallList(dlist);

Very easy, no ?

@+
Cyclone