29 #ifndef __GLES2StateCacheManager_H__
30 #define __GLES2StateCacheManager_H__
38 class GLES2StateCacheManagerImp;
65 void initializeCache();
76 void bindGLBuffer(GLenum target, GLuint buffer,
bool force =
false);
83 void deleteGLBuffer(GLenum target, GLuint buffer,
bool force =
false);
89 void bindGLTexture(GLenum target, GLuint texture);
94 void invalidateStateForTexture(GLuint texture);
101 void setTexParameteri(GLenum target, GLenum pname, GLint param);
108 void setTexParameterf(GLenum target, GLenum pname, GLfloat param);
115 void getTexParameterfv(GLenum target, GLenum pname, GLfloat *param);
121 bool activateGLTextureUnit(
unsigned char unit);
126 GLenum getBlendEquation(
void)
const;
131 void setBlendEquation(GLenum eq);
137 void setBlendFunc(GLenum source, GLenum dest);
142 GLboolean getDepthMask(
void)
const;
147 void setDepthMask(GLboolean mask);
152 GLenum getDepthFunc(
void)
const;
157 void setDepthFunc(GLenum func);
162 GLclampf getClearDepth(
void)
const;
167 void setClearDepth(GLclampf depth);
175 void setClearColour(GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha);
188 void setColourMask(GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha);
193 GLuint getStencilMask(
void)
const;
198 void setStencilMask(GLuint mask);
203 void setEnabled(GLenum flag);
208 void setDisabled(GLenum flag);
213 void setVertexAttribEnabled(GLuint attrib);
218 void setVertexAttribDisabled(GLuint attrib);
223 unsigned int getDiscardBuffers(
void)
const;
228 void setDiscardBuffers(
unsigned int flags);
233 GLenum getPolygonMode(
void)
const;
238 void setPolygonMode(GLenum mode);
243 GLenum getCullFace(
void)
const;
248 void setCullFace(GLenum face);