casa
5.7.0-16
|
Returns a Display casacore::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 (casacore::Bool force, const casacore::uInt spaces) |
Draw element unless disabled or force is true. More... | |
virtual void | start () |
Begin recording commands. More... | |
virtual void | stop () |
Stop display list recording. More... | |
Public Member Functions inherited from casa::GLPCDisplayListElement | |
casacore::Bool | enabled () const |
enable/disable More... | |
casacore::Bool | disabled () const |
virtual void | disable () |
virtual void | enable () |
const char * | name () const |
Each element has a name which is printed out when tracing. More... | |
void | name (const char *) |
casacore::Bool | trace () const |
Enable/disable tracing. More... | |
void | trace (const casacore::Bool t) |
casacore::uLong | useCount () const |
Each element is reference counted. More... | |
void | ref () |
void | unref () |
Private Attributes | |
GLenum | mode_ |
GLuint | id_ |
RECORDSTATE | recording_ |
Additional Inherited Members | |
Protected Member Functions inherited from casa::GLPCDisplayListElement | |
GLPCDisplayListElement (const char *name=NULL) | |
virtual | ~GLPCDisplayListElement () |
Elements self delete when the reference count goes to 0. More... | |
void | traceCheck (casacore::uInt spaces=0, const char *str=NULL, const char *name=NULL) |
Returns a Display casacore::List Element for recording GL commands.
Returns a Display casacore::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 134 of file GLPCDisplayList.h.
Enumerator | |
---|---|
INITED | |
RECORDING | |
STOPPED |
Definition at line 136 of file GLPCDisplayList.h.
|
virtual |
|
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 |
Begin recording commands.
Recording is a one shot deal. After stop is called, recording can not be reenabled.
Reimplemented from casa::GLPCDisplayListElement.
|
virtual |
Stop display list recording.
Ignored if not already recording.
Reimplemented from casa::GLPCDisplayListElement.
|
private |
Definition at line 152 of file GLPCDisplayList.h.
|
private |
Definition at line 151 of file GLPCDisplayList.h.
|
private |
Definition at line 153 of file GLPCDisplayList.h.