29 #ifndef __GLESStateCacheManager_H__
30 #define __GLESStateCacheManager_H__
38 class GLESStateCacheManagerImp;
65 void initializeCache();
76 void bindGLBuffer(GLenum target, GLuint buffer, GLenum attach = 0,
bool force =
false);
83 void deleteGLBuffer(GLenum target, GLuint buffer, GLenum attach = 0,
bool force =
false);
89 void bindGLTexture(GLenum target, GLuint texture);
96 void setTexParameteri(GLenum target, GLenum pname, GLint param);
102 bool activateGLTextureUnit(
unsigned char unit);
107 GLenum getBlendEquation(
void)
const;
112 void setBlendEquation(GLenum eq);
118 void setBlendFunc(GLenum source, GLenum dest);
123 GLboolean getDepthMask(
void)
const;
128 void setDepthMask(GLboolean mask);
133 GLenum getDepthFunc(
void)
const;
138 void setDepthFunc(GLenum func);
143 GLclampf getClearDepth(
void)
const;
148 void setClearDepth(GLclampf depth);
156 void setClearColour(GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha);
169 void setColourMask(GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha);
174 GLuint getStencilMask(
void)
const;
179 void setStencilMask(GLuint mask);
184 void setEnabled(GLenum flag);
189 void setDisabled(GLenum flag);
194 unsigned int getDiscardBuffers(
void)
const;
199 void setDiscardBuffers(
unsigned int flags);
204 GLenum getPolygonMode(
void)
const;
209 void setPolygonMode(GLenum mode);
214 GLenum getCullFace(
void)
const;
219 void setCullFace(GLenum face);
Ogre::GeneralAllocatedObject StateCacheAlloc
An in memory cache of the OpenGL ES state.
An in memory cache of the OpenGL ES state.
GLESStateCacheManagerImp * mImp
Superclass for all objects that wish to use custom memory allocators when their new / delete operator...