All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Public Member Functions | Public Attributes | List of all members
Eegeo::Rendering::GLState Class Reference

Wrapper for common Open GL states to filter out redundant state changes. More...

#include <GLState.h>

Public Member Functions

void BindTexture2D (const GLuint textureId)
 
void BindTextureCubeMap (const GLuint textureId)
 
void BindArrayBuffer (GLuint bufferId)
 
void BindElementArrayBuffer (GLuint bufferId)
 
void InvalidateAll ()
 
u32 TrySet (const GLState &stateToSet)
 
void SetDefaultState ()
 
void ResetCounters ()
 
int GetNumOfAttemptedSets () const
 
int GetNumOfActualSets () const
 
int GetNumOfValid () const
 
void ClearTrySetAttempted ()
 
u32 TrySetIfNotAttempted (const GLState &stateToSet)
 

Public Attributes

GLBoolState< GL_TEXTURE_2D > Texture2D
 
GLBoolState< GL_CULL_FACE > CullFace
 
GLBoolState< GL_BLEND > Blend
 
GLBoolState< GL_DITHER > Dither
 
GLBoolState< GL_STENCIL_TEST > StencilTest
 
GLBoolState< GL_DEPTH_TEST > DepthTest
 
GLBoolState< GL_SCISSOR_TEST > ScissorTest
 
GLBoolState
< GL_POLYGON_OFFSET_FILL > 
PolygonOffsetFill
 
GLBoolState
< GL_SAMPLE_ALPHA_TO_COVERAGE > 
SampleAlphaToCoverage
 
GLBoolState< GL_SAMPLE_COVERAGE > SampleCoverage
 
GLStateFunc1< GLenum > ActiveTexture
 
GLStateFunc1< GLuint > UseProgram
 
GLStateEnumFunc1
< GL_FRAMEBUFFER, GLuint > 
BindFramebuffer
 
GLStateEnumFunc1
< GL_RENDERBUFFER, GLuint > 
BindRenderbuffer
 
GLStateFunc1< GLboolean > DepthMask
 
GLStateFunc1< GLenum > DepthFunc
 
GLStateFunc2< GLfloat, GLfloat > DepthRange
 
GLStateFunc1< GLenum > BlendEquation
 
GLStateFunc2< GLenum, GLenum > BlendFunc
 
GLStateFunc3< GLenum, GLint,
GLuint > 
StencilFunc
 
GLStateFunc3< GLenum, GLenum,
GLenum > 
StencilOp
 
GLStateFunc1< GLuint > StencilMask
 
GLStateFunc4< GLenum, GLenum,
GLint, GLuint > 
StencilFuncSeparate
 
GLStateFunc4< GLenum, GLenum,
GLenum, GLenum > 
StencilOpSeparate
 
GLStateFunc2< GLenum, GLuint > StencilMaskSeparate
 
GLStateFunc1< GLenum > CullFaceMode
 
GLStateFunc1< GLenum > FrontFace
 
GLStateFunc4< GLboolean,
GLboolean, GLboolean,
GLboolean > 
ColorMask
 
GLStateFunc4< float, float,
float, float > 
ClearColor
 
GLStateFunc1< GLint > ClearStencil
 
GLStateFunc4< GLint, GLint,
GLsizei, GLsizei > 
Viewport
 
GLStateFunc2< GLfloat, GLfloat > PolygonOffset
 

Detailed Description

Wrapper for common Open GL states to filter out redundant state changes.

Redundant state changes made through this class are filtered such that they aren't passed on to Open GL.


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