casa  $Rev:20696$
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Types | Public Member Functions | Private Attributes
casa::GLPCDisplayListEntry Class Reference

Returns a Display List Element for recording GL commands. More...

#include <GLPCDisplayList.h>

Inheritance diagram for casa::GLPCDisplayListEntry:
casa::GLPCDisplayListElement casa::GLPCTexturedImage

List of all members.

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_

Detailed Description

Returns a Display List Element for recording GL commands.

Synopsis

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.


Member Enumeration Documentation

Enumerator:
INITED 
RECORDING 
STOPPED 

Definition at line 124 of file GLPCDisplayList.h.


Constructor & Destructor Documentation


Member Function Documentation

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.


Member Data Documentation

Definition at line 140 of file GLPCDisplayList.h.

Definition at line 139 of file GLPCDisplayList.h.

Definition at line 141 of file GLPCDisplayList.h.


The documentation for this class was generated from the following file: