Def. A scene graph is a n-ary tree where
or a property (sometimes); |
|
Example:
|
Properties in scene graphs can be
|
|
glPushMatrix();
OOP for Scene GraphsglPopMatrix();
Useful for objects that will be drawn more than once.
Start a new display list:
glNewList(GLuint name, GLenum mode);
End the current display list
void glEndList();
mode can be
| GL_COMPILE | The commands in the list will not be executed as they are stored in the display list. |
| GL_COMPILE_AND_EXECUTE | The commands will be executed as they are stored in the display list. |
Execute a display list:
void glCallList(GLuint name);