GLState Class Reference

Utility wrapper classes for accessing and synchronizing OpenGL state in a cleaner, more object-oriented manner, grouping similar state items with each other. More...

#include <GLState.h>

List of all members.

Static Public Member Functions

static int getFreeLight ()
static bool glCheckError (const char *file, int line)


Detailed Description

Utility wrapper classes for accessing and synchronizing OpenGL state in a cleaner, more object-oriented manner, grouping similar state items with each other.

Author:
Travis Fischer (fisch0920@gmail.com)
Date:
Summer 2008
Note:
Where applicable, acceptable parameters are listed along with default values marked between '<' and '>'. For example, the frontFace property of GLPrimitiveStateItem is preceded by the following comment: / glFrontFace; GL_CW or <GL_CCW> Where GL_CCW is the OpenGL-defined default value for this property.

Definition at line 41 of file GLState.h.


Member Function Documentation

int GLState::getFreeLight (  )  [static]

Returns:
the next lowest light index which is not currently enabled, or -1 if all light slots within the current GL context are taken

Definition at line 26 of file GLState.cpp.

bool GLState::glCheckError ( const char *  file,
int  line 
) [static]

Definition at line 42 of file GLState.cpp.


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

Generated on 28 Feb 2009 for Milton by doxygen 1.5.6