Torque3D Documentation / _generateds / GFXGLPreserveInteger

GFXGLPreserveInteger

Engine/source/gfx/gl/gfxGLUtils.h

Simple class which preserves a given GL integer.

More...

Public Types

BindFn )(GLenum, GLuint)

Public Functions

GFXGLPreserveInteger(GLenum binding, GLint getBinding, BindFn binder)

Preserve the integer.

Restores the integer.

Detailed Description

Simple class which preserves a given GL integer.

This class determines the integer to preserve on construction and restores it on destruction.

Public Types

typedef void(STDCALL * BindFn )(GLenum, GLuint)

Private Attributes

BindFn mBinder 
GLenum mBinding 
GLint mPreserved 

Public Functions

GFXGLPreserveInteger(GLenum binding, GLint getBinding, BindFn binder)

Preserve the integer.

Parameters:

binding

The binding which should be set on destruction.

getBinding

The parameter to be passed to glGetIntegerv to determine the integer to be preserved.

binder

The gl function to call to restore the integer.

~GFXGLPreserveInteger()

Restores the integer.