![]() |
OGRE
1.10.5
Object-Oriented Graphics Rendering Engine
|
An in memory cache of the OpenGL ES state. More...
#include <OgreGLES2StateCacheManager.h>
Public Member Functions | |
GLES2StateCacheManager (void) | |
~GLES2StateCacheManager (void) | |
bool | activateGLTextureUnit (unsigned char unit) |
Activate an OpenGL texture unit. More... | |
void | bindGLBuffer (GLenum target, GLuint buffer, bool force=false) |
Bind an OpenGL buffer of any type. More... | |
void | bindGLTexture (GLenum target, GLuint texture) |
Bind an OpenGL texture of any type. More... | |
void | clearCache () |
Clears all cached values. More... | |
void | deleteGLBuffer (GLenum target, GLuint buffer, bool force=false) |
Delete an OpenGL buffer of any type. More... | |
GLenum | getBlendEquation (void) const |
Gets the current blend equation setting. More... | |
GLclampf | getClearDepth (void) const |
Gets the clear depth in the range from [0..1]. More... | |
vector< GLboolean >::type & | getColourMask (void) |
Gets the current colour mask setting. More... | |
GLenum | getCullFace (void) const |
Sets the face culling mode. More... | |
GLenum | getDepthFunc (void) const |
Gets the current depth test function. More... | |
GLboolean | getDepthMask (void) const |
Gets the current depth mask setting. More... | |
unsigned int | getDiscardBuffers (void) const |
Gets the mask of buffers to be discarded if GL_EXT_discard_framebuffer is supported. More... | |
GLenum | getPolygonMode (void) const |
Gets the current polygon rendering mode, fill, wireframe, points, etc. More... | |
GLuint | getStencilMask (void) const |
Gets the current stencil mask. More... | |
void | getTexParameterfv (GLenum target, GLenum pname, GLfloat *param) |
Sets a float parameter value per texture target. More... | |
void | initializeCache () |
Initialize our cache variables and sets the GL states on the current context. More... | |
void | invalidateStateForTexture (GLuint texture) |
Invalidates the state associated with a particular texture ID. More... | |
void | setBlendEquation (GLenum eq) |
Sets the current blend equation setting. More... | |
void | setBlendFunc (GLenum source, GLenum dest) |
Sets the blending function. More... | |
void | setClearColour (GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha) |
Sets the color to clear to. More... | |
void | setClearDepth (GLclampf depth) |
Sets the clear depth in the range from [0..1]. More... | |
void | setColourMask (GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha) |
Sets the current colour mask. More... | |
void | setCullFace (GLenum face) |
Sets the face culling setting. More... | |
void | setDepthFunc (GLenum func) |
Sets the current depth test function. More... | |
void | setDepthMask (GLboolean mask) |
Sets the current depth mask setting. More... | |
void | setDisabled (GLenum flag) |
Disables a piece of OpenGL functionality. More... | |
void | setDiscardBuffers (unsigned int flags) |
Sets the mask of buffers to be discarded if GL_EXT_discard_framebuffer is supported. More... | |
void | setEnabled (GLenum flag) |
Enables a piece of OpenGL functionality. More... | |
void | setPolygonMode (GLenum mode) |
Sets the current polygon rendering mode. More... | |
void | setStencilMask (GLuint mask) |
Sets the stencil mask. More... | |
void | setTexParameterf (GLenum target, GLenum pname, GLfloat param) |
Sets a float parameter value per texture target. More... | |
void | setTexParameteri (GLenum target, GLenum pname, GLint param) |
Sets an integer parameter value per texture target. More... | |
void | setVertexAttribDisabled (GLuint attrib) |
Disables a vertex attribute. More... | |
void | setVertexAttribEnabled (GLuint attrib) |
Enables a vertex attribute. More... | |
An in memory cache of the OpenGL ES state.
Ogre::GLES2StateCacheManager::GLES2StateCacheManager | ( | void | ) |
Ogre::GLES2StateCacheManager::~GLES2StateCacheManager | ( | void | ) |
void Ogre::GLES2StateCacheManager::initializeCache | ( | ) |
Initialize our cache variables and sets the GL states on the current context.
void Ogre::GLES2StateCacheManager::clearCache | ( | ) |
Clears all cached values.
void Ogre::GLES2StateCacheManager::bindGLBuffer | ( | GLenum | target, |
GLuint | buffer, | ||
bool | force = false |
||
) |
Bind an OpenGL buffer of any type.
target | The buffer target. |
buffer | The buffer ID. |
force | Optional parameter to force an update. |
void Ogre::GLES2StateCacheManager::deleteGLBuffer | ( | GLenum | target, |
GLuint | buffer, | ||
bool | force = false |
||
) |
Delete an OpenGL buffer of any type.
target | The buffer target. |
buffer | The buffer ID. |
force | Optional parameter to force an update. |
void Ogre::GLES2StateCacheManager::bindGLTexture | ( | GLenum | target, |
GLuint | texture | ||
) |
Bind an OpenGL texture of any type.
target | The texture target. |
texture | The texture ID. |
void Ogre::GLES2StateCacheManager::invalidateStateForTexture | ( | GLuint | texture | ) |
Invalidates the state associated with a particular texture ID.
texture | The texture ID. |
void Ogre::GLES2StateCacheManager::setTexParameteri | ( | GLenum | target, |
GLenum | pname, | ||
GLint | param | ||
) |
Sets an integer parameter value per texture target.
target | The texture target. |
pname | The parameter name. |
param | The parameter value. |
void Ogre::GLES2StateCacheManager::setTexParameterf | ( | GLenum | target, |
GLenum | pname, | ||
GLfloat | param | ||
) |
Sets a float parameter value per texture target.
target | The texture target. |
pname | The parameter name. |
param | The parameter value. |
void Ogre::GLES2StateCacheManager::getTexParameterfv | ( | GLenum | target, |
GLenum | pname, | ||
GLfloat * | param | ||
) |
Sets a float parameter value per texture target.
target | The texture target. |
pname | The parameter name. |
param | The parameter value. |
bool Ogre::GLES2StateCacheManager::activateGLTextureUnit | ( | unsigned char | unit | ) |
Activate an OpenGL texture unit.
unit | The texture unit to activate. |
|
inline |
Gets the current blend equation setting.
void Ogre::GLES2StateCacheManager::setBlendEquation | ( | GLenum | eq | ) |
Sets the current blend equation setting.
eq | The blend equation to use. |
void Ogre::GLES2StateCacheManager::setBlendFunc | ( | GLenum | source, |
GLenum | dest | ||
) |
Sets the blending function.
source | The blend mode for the source. |
dest | The blend mode for the destination |
|
inline |
Gets the current depth mask setting.
void Ogre::GLES2StateCacheManager::setDepthMask | ( | GLboolean | mask | ) |
Sets the current depth mask setting.
mask | The depth mask to use. |
|
inline |
Gets the current depth test function.
void Ogre::GLES2StateCacheManager::setDepthFunc | ( | GLenum | func | ) |
Sets the current depth test function.
func | The depth test function to use. |
|
inline |
Gets the clear depth in the range from [0..1].
void Ogre::GLES2StateCacheManager::setClearDepth | ( | GLclampf | depth | ) |
Sets the clear depth in the range from [0..1].
depth | The clear depth to use. |
void Ogre::GLES2StateCacheManager::setClearColour | ( | GLclampf | red, |
GLclampf | green, | ||
GLclampf | blue, | ||
GLclampf | alpha | ||
) |
Sets the color to clear to.
red | The red component. |
green | The green component. |
blue | The blue component. |
alpha | The alpha component. |
|
inline |
Gets the current colour mask setting.
void Ogre::GLES2StateCacheManager::setColourMask | ( | GLboolean | red, |
GLboolean | green, | ||
GLboolean | blue, | ||
GLboolean | alpha | ||
) |
Sets the current colour mask.
red | The red component. |
green | The green component. |
blue | The blue component. |
alpha | The alpha component. |
|
inline |
Gets the current stencil mask.
void Ogre::GLES2StateCacheManager::setStencilMask | ( | GLuint | mask | ) |
Sets the stencil mask.
mask | The stencil mask to use |
void Ogre::GLES2StateCacheManager::setEnabled | ( | GLenum | flag | ) |
Enables a piece of OpenGL functionality.
flag | The function to enable. |
void Ogre::GLES2StateCacheManager::setDisabled | ( | GLenum | flag | ) |
Disables a piece of OpenGL functionality.
flag | The function to disable. |
void Ogre::GLES2StateCacheManager::setVertexAttribEnabled | ( | GLuint | attrib | ) |
Enables a vertex attribute.
attrib | The attribute to enable. |
void Ogre::GLES2StateCacheManager::setVertexAttribDisabled | ( | GLuint | attrib | ) |
Disables a vertex attribute.
attrib | The attribute to disable. |
|
inline |
Gets the mask of buffers to be discarded if GL_EXT_discard_framebuffer is supported.
|
inline |
Sets the mask of buffers to be discarded if GL_EXT_discard_framebuffer is supported.
flags | The bit mask of buffers to be discarded. Stored as Ogre::FrameBufferType. |
|
inline |
Gets the current polygon rendering mode, fill, wireframe, points, etc.
|
inline |
Sets the current polygon rendering mode.
mode | The polygon mode to use. |
|
inline |
Sets the face culling mode.
void Ogre::GLES2StateCacheManager::setCullFace | ( | GLenum | face | ) |
Sets the face culling setting.
face | The face culling mode to use. |