29 #ifndef __GLESStateCacheManagerImp_H__ 30 #define __GLESStateCacheManagerImp_H__ 51 mTexParameteriMap.clear();
81 GLenum mBlendEquation;
94 unsigned char mActiveTextureUnit;
96 unsigned int mDiscardBuffers;
101 GLESStateCacheManagerImp(
void);
102 ~GLESStateCacheManagerImp(
void);
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);
GLuint mLastBoundedTexID
Stores the last bounded texture id.
HashMap< GLenum, GLint > TexParameteriMap
GLenum mBlendFuncSrc
Stores the current blend function.
GLenum getDepthFunc(void) const
See GLESStateCacheManager.getDepthFunc.
GLenum getBlendEquation(void) const
See GLESStateCacheManager.getBlendEquation.
void setDiscardBuffers(unsigned int flags)
See GLESStateCacheManager.setDiscardBuffers.
GLboolean getDepthMask(void) const
See GLESStateCacheManager.getDepthMask.
unsigned int getDiscardBuffers(void) const
See GLESStateCacheManager.getDiscardBuffers.
vector< GLenum >::type mEnableVector
Array of each OpenGL feature that is enabled i.e. blending, depth test, etc.
GLenum getPolygonMode(void) const
See GLESStateCacheManager.getPolygonMode.
GLBindingMap mActiveBufferMap
A map of different buffer types and the currently bound buffer for each type.
GLBindingMap mActiveTextureMap
A map of different texture types and the currently bound texture for each type.
GLclampf getClearDepth(void) const
See GLESStateCacheManager.getClearDepth.
Ogre::GeneralAllocatedObject StateCacheAlloc
TexUnitsMap mTexUnitsMap
A map of texture parameters for each texture unit.
This source file is part of OGRE (Object-oriented Graphics Rendering Engine) For the latest info...
HashMap< GLuint, GLuint > GLBindingMap
GLuint getStencilMask(void) const
See GLESStateCacheManager.getStencilMask.
void setPolygonMode(GLenum mode)
See GLESStateCacheManager.setPolygonMode.
GLenum getCullFace(void) const
See GLESStateCacheManager.getCullFace.
HashMap< GLuint, TextureUnitParams > TexUnitsMap
Superclass for all objects that wish to use custom memory allocators when their new / delete operator...
vector< GLboolean >::type & getColourMask(void)
See GLESStateCacheManager.getColourMask.
TexParameteriMap mTexParameteriMap