Display Lists in OpenGL
An Introduction |
Prof. David Bernstein |
Computer Science Department |
bernstdh@jmu.edu |
GLuint glGenLists(GLsizei range)
void glNewList(GLuint name, GLenum mode)
specifies the start of list with index name
void glEndList()
specifies the end
GL_COMPILE
or GL_COMPILE_AND_EXECUTE
void glCallList(GLuint name)
glCallList()
can be called between calls
to glNewList()
and glEndList()
void glGetIntegerv(GL_MAX_LIST_NESTING, GLint *depth
]
void glListBase(GLuint offset)
void glCallLists(GLsizei n, GLenum type, conts GLvoid* lists)
type
is usually GL_INT
and lists is usually a pointer to an array of GLint
"names"