29 #ifndef __GLNullStateCacheManagerImp_H__
30 #define __GLNullStateCacheManagerImp_H__
100 void bindGLBuffer(GLenum target, GLuint buffer,
bool force =
false);
103 void deleteGLBuffer(GLenum target, GLuint buffer,
bool force =
false);
154 void setClearColour(GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha);
160 void setColourMask(GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha);
204 void setViewport(GLint x, GLint y, GLsizei width, GLsizei height);
GLenum getCullFace(void) const
See GLStateCacheManager.getCullFace.
GLenum mBlendEquation
Stores the current blend equation.
GLenum getBlendEquation(void) const
See GLStateCacheManager.getBlendEquation.
void setClearColour(GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha)
See GLStateCacheManager.setClearColour.
void deleteGLBuffer(GLenum target, GLuint buffer, bool force=false)
See GLStateCacheManager.deleteGLBuffer.
void invalidateStateForTexture(GLuint texture)
See GLStateCacheManager.invalidateStateForTexture.
size_t mActiveTextureUnit
Stores the currently active texture unit.
void setPointParameters(GLfloat *attenuation, float minSize, float maxSize)
GLuint mStencilMask
Stores the current stencil mask.
unsigned int getDiscardBuffers(void) const
See GLStateCacheManager.getDiscardBuffers.
void setStencilMask(GLuint mask)
See GLStateCacheManager.setStencilMask.
GLuint getStencilMask(void) const
See GLStateCacheManager.getStencilMask.
void bindGLBuffer(GLenum target, GLuint buffer, bool force=false)
See GLStateCacheManager.bindGLBuffer.
GLfloat mPointAttenuation[3]
GLboolean getDepthMask(void) const
See GLStateCacheManager.getDepthMask.
void setCullFace(GLenum face)
See GLStateCacheManager.setCullFace.
void setMaterialDiffuse(GLfloat r, GLfloat g, GLfloat b, GLfloat a)
void setColourMask(GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha)
See GLStateCacheManager.setColourMask.
void setMaterialEmissive(GLfloat r, GLfloat g, GLfloat b, GLfloat a)
void setShadeModel(GLenum model)
See GLStateCacheManager.setShadeModel.
GLenum mDepthFunc
Stores the current depth test function.
GLenum mBlendFuncDest
Stores the current blend destination function.
GLclampf getClearDepth(void) const
See GLStateCacheManager.getClearDepth.
void enableTextureCoordGen(GLenum type)
Enable the specified texture coordinate generation option for the currently active texture unit...
void setTexParameteri(GLenum target, GLenum pname, GLint param)
See GLStateCacheManager.setTexParameteri.
void disableTextureCoordGen(GLenum type)
Disable the specified texture coordinate generation option for the currently active texture unit...
~GLStateCacheManagerImp(void)
vector< GLboolean >::type mColourMask
Stores the current colour write mask.
void setMaterialSpecular(GLfloat r, GLfloat g, GLfloat b, GLfloat a)
void clearCache()
See GLStateCacheManager.clearCache.
GLboolean mDepthMask
Stores the current depth write mask.
void setPointSize(GLfloat size)
void bindGLTexture(GLenum target, GLuint texture)
See GLStateCacheManager.bindGLTexture.
Ogre::GeneralAllocatedObject StateCacheAlloc
void setBlendEquation(GLenum eq)
See GLStateCacheManager.setBlendEquation.
GLclampf mClearDepth
Stores the current depth clearing colour.
vector< GLclampf >::type mClearColour
Stores the current clear colour.
Superclass for all objects that wish to use custom memory allocators when their new / delete operator...
void setBlendFunc(GLenum source, GLenum dest)
See GLStateCacheManager.setBlendFunc.
GLStateCacheManagerImp(void)
GLenum mPolygonMode
Stores the current polygon rendering mode.
GLenum mCullFace
Stores the current face culling setting.
int mViewport[4]
Viewport origin and size.
GLenum getDepthFunc(void) const
See GLStateCacheManager.getDepthFunc.
An in memory cache of the OpenGL state.
void setViewport(GLint x, GLint y, GLsizei width, GLsizei height)
Set viewport parameters.
vector< GLboolean >::type & getColourMask(void)
See GLStateCacheManager.getColourMask.
void setLightAmbient(GLfloat r, GLfloat g, GLfloat b)
See GLStateCacheManager.setLightAmbient.
void setDepthFunc(GLenum func)
See GLStateCacheManager.setDepthFunc.
void initializeCache()
See GLStateCacheManager.initializeCache.
void getViewport(int *array)
Get viewport parameters.
void setClearDepth(GLclampf depth)
See GLStateCacheManager.setClearDepth.
void setDepthMask(GLboolean mask)
See GLStateCacheManager.setDepthMask.
void setPolygonMode(GLenum mode)
See GLStateCacheManager.setPolygonMode.
void setMaterialShininess(GLfloat shininess)
bool activateGLTextureUnit(size_t unit)
See GLStateCacheManager.activateGLTextureUnit.
void setMaterialAmbient(GLfloat r, GLfloat g, GLfloat b, GLfloat a)
unsigned int mDiscardBuffers
Mask of buffers who contents can be discarded if GL_EXT_discard_framebuffer is supported.
GLenum mBlendEquationAlpha
void setEnabled(GLenum flag, bool enabled)
See GLStateCacheManager.setEnabled.
GLenum mBlendFuncSource
Stores the current blend source function.
void setDiscardBuffers(unsigned int flags)
See GLStateCacheManager.setDiscardBuffers.
GLenum getPolygonMode(void) const
See GLStateCacheManager.getPolygonMode.