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