GL Studio C++ Runtime API
GlsDisplayList Class Reference

#include <gls_display_list.h>

Public Member Functions

void Invalidate (void)
 
void Allocate (void)
 
void Start (void)
 
void End (void)
 
void Invoke (void)
 
bool Valid (void)
 
void Valid (const bool &val)
 
bool UseList (void)
 
void UseList (const bool &val)
 

Protected Attributes

bool _valid
 
bool _useList
 
unsigned int _handle
 

Detailed Description

The GlsDisplayList class. Manages an OpenGL display list.

Member Function Documentation

void Allocate ( void  )
inline

Allocate an OpenGL display list, deallocating any existing list

void End ( void  )
inline

Stop writing into the display list and save it

void Invalidate ( void  )
inline

Invalidate the display list. An object with an invalid display list should reinvoke its draw code to rebuild the display list. Also deallocates the OpenGL list.

void Invoke ( void  )
inline

Draw what's in the display list

void Start ( void  )
inline

Start writing into the display list

bool UseList ( void  )
inline

Returns true if this display list is enabled

void UseList ( const bool &  val)
inline

Set whether or not this display list is enabled

bool Valid ( void  )
inline

Returns true if the list is valid

void Valid ( const bool &  val)
inline

Set wether or not the list is valid. Be careful when setting this to true. Make sure the list really is valid

Member Data Documentation

unsigned int _handle
protected

The OpenGL list handle for this list

bool _useList
protected

True if this list is enabled

bool _valid
protected

True if this list is valid


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