proj home

Files   Classes   Functions   Hierarchy  

gobjglCallList< T > Class Template Reference

OpenGL glCallList function wrapped as an object. More...

#include <gobjbase.h>

Inheritance diagram for gobjglCallList< T >:
Collaboration diagram for gobjglCallList< T >:

List of all members.

Public Member Functions

 gobjglCallList (T listid_)
 The id is assumed to be valid.
void draw ()
 Draw the compiled list.

Public Attributes

T listid
 The list id.


Detailed Description

template<typename T>
class gobjglCallList< T >

OpenGL glCallList function wrapped as an object.

gobjglCallList is templated to be used to either contain the listName or reference the listName. ie gobjglCallList<GLuint> or gobjglCallList<GLuint&>.

glCallList evaluates the display list pointed to by listName.

Definition at line 101 of file gobjbase.h.


Constructor & Destructor Documentation

template<typename T>
gobjglCallList< T >::gobjglCallList ( T  listid_  )  [inline]

The id is assumed to be valid.

Definition at line 109 of file gobjbase.h.

00110     : listid(listid_) {}


Member Function Documentation

template<typename T>
void gobjglCallList< T >::draw (  )  [inline, virtual]

Draw the compiled list.

Implements gobj.

Definition at line 113 of file gobjbase.h.

References GOBJDEBUGCODE, and gobjglCallList< T >::listid.

00114     { GOBJDEBUGCODE glCallList(listid); }


Member Data Documentation

template<typename T>
T gobjglCallList< T >::listid

The list id.

Definition at line 106 of file gobjbase.h.

Referenced by gobjglCallList< T >::draw().


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

Generated on Fri Mar 4 00:49:58 2011 for Chelton Evans Source by  doxygen 1.5.8