Go to the documentation of this file.
29 #ifndef __GLESStateCacheManagerImp_H__
30 #define __GLESStateCacheManagerImp_H__
51 mTexParameteriMap.clear();
81 GLenum mBlendEquation;
94 unsigned char mActiveTextureUnit;
96 unsigned int mDiscardBuffers;
105 void initializeCache();
111 void bindGLBuffer(GLenum target, GLuint buffer, GLenum attach = 0,
bool force =
false);
114 void deleteGLBuffer(GLenum target, GLuint buffer, GLenum attach = 0,
bool force =
false);
117 void bindGLTexture(GLenum target, GLuint texture);
120 void setTexParameteri(GLenum target, GLenum pname, GLint param);
123 bool activateGLTextureUnit(
unsigned char unit);
129 void setBlendEquation(GLenum eq);
132 void setBlendFunc(GLenum source, GLenum dest);
138 void setDepthMask(GLboolean mask);
144 void setDepthFunc(GLenum func);
150 void setClearDepth(GLclampf depth);
153 void setClearColour(GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha);
159 void setColourMask(GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha);
165 void setStencilMask(GLuint mask);
168 void setEnabled(GLenum flag);
171 void setDisabled(GLenum flag);
189 void setCullFace(GLenum face);
GLBindingMap mActiveBufferMap
A map of different buffer types and the currently bound buffer for each type.
GLenum getCullFace(void) const
See GLESStateCacheManager.getCullFace.
TexUnitsMap mTexUnitsMap
A map of texture parameters for each texture unit.
Superclass for all objects that wish to use custom memory allocators when their new / delete operator...
GLBindingMap mActiveTextureMap
A map of different texture types and the currently bound texture for each type.
GLuint getStencilMask(void) const
See GLESStateCacheManager.getStencilMask.
GLenum getDepthFunc(void) const
See GLESStateCacheManager.getDepthFunc.
void setPolygonMode(GLenum mode)
See GLESStateCacheManager.setPolygonMode.
HashMap< GLuint, GLuint > GLBindingMap
vector< GLboolean >::type & getColourMask(void)
See GLESStateCacheManager.getColourMask.
An in memory cache of the OpenGL ES state.
GLenum mBlendFuncSrc
Stores the current blend function.
GLboolean getDepthMask(void) const
See GLESStateCacheManager.getDepthMask.
GLenum getBlendEquation(void) const
See GLESStateCacheManager.getBlendEquation.
GLuint mLastBoundedTexID
Stores the last bounded texture id.
GLclampf getClearDepth(void) const
See GLESStateCacheManager.getClearDepth.
TexParameteriMap mTexParameteriMap
Ogre::GeneralAllocatedObject StateCacheAlloc
HashMap< GLenum, GLint > TexParameteriMap
void setDiscardBuffers(unsigned int flags)
See GLESStateCacheManager.setDiscardBuffers.
GLenum getPolygonMode(void) const
See GLESStateCacheManager.getPolygonMode.
vector< GLenum >::type mEnableVector
Array of each OpenGL feature that is enabled i.e. blending, depth test, etc.
unsigned int getDiscardBuffers(void) const
See GLESStateCacheManager.getDiscardBuffers.
HashMap< GLuint, TextureUnitParams > TexUnitsMap
Copyright © 2012 Torus Knot Software Ltd

This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.
Last modified Tue Apr 13 2021 08:53:15