casa
$Rev:20696$
|
Returns a Display List Element for recording GL commands. More...
#include <GLPCDisplayList.h>
Public Types | |
enum | RECORDSTATE { INITED, RECORDING, STOPPED } |
Public Member Functions | |
GLPCDisplayListEntry::GLPCDisplayListEntry (const char *name=NULL, GLenum mode=GL_COMPILE_AND_EXECUTE) | |
virtual | ~GLPCDisplayListEntry () |
virtual void | call (Bool force, const uInt spaces) |
Draw element unless disabled or force is True. | |
virtual void | start () |
Begin recording commands. | |
virtual void | stop () |
Stop display list recording. | |
Private Attributes | |
GLenum | mode_ |
GLuint | id_ |
RECORDSTATE | recording_ |
Returns a Display List Element for recording GL commands.
Returns a Display List Element for recording GL commands. Commands are recorded until stop is called by creating an OpenGL display list and letting OpenGL do the actual recording. Calling stop ends the list. Typically, these OpenGL lists are very short, containing just one or two commands. eg. draw a rectangle.
Definition at line 122 of file GLPCDisplayList.h.
Definition at line 124 of file GLPCDisplayList.h.
virtual casa::GLPCDisplayListEntry::~GLPCDisplayListEntry | ( | ) | [virtual] |
virtual void casa::GLPCDisplayListEntry::call | ( | Bool | force, |
const uInt | nspaces | ||
) | [virtual] |
Draw element unless disabled or force is True.
Reimplemented from casa::GLPCDisplayListElement.
casa::GLPCDisplayListEntry::GLPCDisplayListEntry::GLPCDisplayListEntry | ( | const char * | name = NULL , |
GLenum | mode = GL_COMPILE_AND_EXECUTE |
||
) |
virtual void casa::GLPCDisplayListEntry::start | ( | ) | [virtual] |
Begin recording commands.
Recording is a one shot deal. After stop is called, recording can not be reenabled.
Reimplemented from casa::GLPCDisplayListElement.
virtual void casa::GLPCDisplayListEntry::stop | ( | ) | [virtual] |
Stop display list recording.
Ignored if not already recording.
Reimplemented from casa::GLPCDisplayListElement.
GLuint casa::GLPCDisplayListEntry::id_ [private] |
Definition at line 140 of file GLPCDisplayList.h.
GLenum casa::GLPCDisplayListEntry::mode_ [private] |
Definition at line 139 of file GLPCDisplayList.h.
Definition at line 141 of file GLPCDisplayList.h.