| GL Studio C++ Runtime API

Static Public Member Functions | Friends | List of all members
GlsStateManager Class Reference

`#include <gls_state_manager.h>`

## Static Public Member Functions
static IGlsStateManager * | Instance ()
static GLenum | CheckError ()

## Friends
class | GlsGlobals

## Detailed Description

The GlsStateManager singleton class that holds 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

## ◆ CheckError()

static GLenum CheckError | ( |  | ) |
| static

Returns
  The value of glGetError(), and prints the value if not equal to GL_NO_ERROR.

## ◆ Instance()

static IGlsStateManager * Instance | ( |  | ) |
| 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:

- gls_state_manager.h