GL Studio C++ Runtime API
GlsStateManager Class Reference

#include <gls_state_manager.h>

Static Public Member Functions

static IGlsStateManagerInstance (void)
 
static GLenum CheckError ()
 

Detailed Description

The GlsStateManager factory class. Creates an instance of a state manager that manages the GL Studio runtime library's use of the OpenGL context, minimizing unnecessary state changes.

Member Function Documentation

static GLenum CheckError ( )
static

returns the value of glGetError(), and prints the value if not equal to GL_NO_ERROR

static IGlsStateManager* Instance ( void  )
static

The singleton accessor method for an implementation of an IGlsStateManager, which manages the GL Studio runtime library's use of the OpenGL context, minimizing unnecessary state changes

Returns
Returns a pointer to the IGlsStateManager implementation singleton. For OpenGL ES 2.0, returns an implementation of an IGlsStateManagerES20

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