An in memory cache of the OpenGL ES state. More...
#include <OgreGLESStateCacheManager.h>
Public Member Functions | |
GLESStateCacheManager (void) | |
~GLESStateCacheManager (void) | |
bool | activateGLTextureUnit (unsigned char unit) |
Activate an OpenGL texture unit. More... | |
void | bindGLBuffer (GLenum target, GLuint buffer, GLenum attach=0, 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, GLenum attach=0, 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) const |
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 | initializeCache () |
Initialize our cache variables and sets the GL states on the current context. More... | |
void | operator delete (void *ptr) |
void | operator delete (void *ptr, const char *, int, const char *) |
void | operator delete (void *ptr, void *) |
void | operator delete[] (void *ptr) |
void | operator delete[] (void *ptr, const char *, int, const char *) |
void * | operator new (size_t sz) |
void * | operator new (size_t sz, const char *file, int line, const char *func) |
operator new, with debug line info More... | |
void * | operator new (size_t sz, void *ptr) |
placement operator new More... | |
void * | operator new[] (size_t sz) |
void * | operator new[] (size_t sz, const char *file, int line, const char *func) |
array operator new, with debug line info 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 | setTexParameteri (GLenum target, GLenum pname, GLint param) |
Sets an integer parameter value per texture target. More... | |
Private Attributes | |
GLESStateCacheManagerImp * | mImp |
An in memory cache of the OpenGL ES state.
Definition at line 53 of file OgreGLESStateCacheManager.h.
Ogre::GLESStateCacheManager::GLESStateCacheManager | ( | void | ) |
Ogre::GLESStateCacheManager::~GLESStateCacheManager | ( | void | ) |
bool Ogre::GLESStateCacheManager::activateGLTextureUnit | ( | unsigned char | unit | ) |
Activate an OpenGL texture unit.
unit | The texture unit to activate. |
void Ogre::GLESStateCacheManager::bindGLBuffer | ( | GLenum | target, |
GLuint | buffer, | ||
GLenum | attach = 0 , |
||
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::GLESStateCacheManager::bindGLTexture | ( | GLenum | target, |
GLuint | texture | ||
) |
Bind an OpenGL texture of any type.
target | The texture target. |
texture | The texture ID. |
void Ogre::GLESStateCacheManager::clearCache | ( | ) |
Clears all cached values.
void Ogre::GLESStateCacheManager::deleteGLBuffer | ( | GLenum | target, |
GLuint | buffer, | ||
GLenum | attach = 0 , |
||
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. |
GLenum Ogre::GLESStateCacheManager::getBlendEquation | ( | void | ) | const |
Gets the current blend equation setting.
GLclampf Ogre::GLESStateCacheManager::getClearDepth | ( | void | ) | const |
Gets the clear depth in the range from [0..1].
vector<GLboolean>::type& Ogre::GLESStateCacheManager::getColourMask | ( | void | ) | const |
Gets the current colour mask setting.
GLenum Ogre::GLESStateCacheManager::getCullFace | ( | void | ) | const |
Sets the face culling mode.
GLenum Ogre::GLESStateCacheManager::getDepthFunc | ( | void | ) | const |
Gets the current depth test function.
GLboolean Ogre::GLESStateCacheManager::getDepthMask | ( | void | ) | const |
Gets the current depth mask setting.
unsigned int Ogre::GLESStateCacheManager::getDiscardBuffers | ( | void | ) | const |
Gets the mask of buffers to be discarded if GL_EXT_discard_framebuffer is supported.
GLenum Ogre::GLESStateCacheManager::getPolygonMode | ( | void | ) | const |
Gets the current polygon rendering mode, fill, wireframe, points, etc.
GLuint Ogre::GLESStateCacheManager::getStencilMask | ( | void | ) | const |
Gets the current stencil mask.
void Ogre::GLESStateCacheManager::initializeCache | ( | ) |
Initialize our cache variables and sets the GL states on the current context.
|
inherited |
Definition at line 96 of file OgreMemoryAllocatedObject.h.
|
inherited |
Definition at line 108 of file OgreMemoryAllocatedObject.h.
|
inherited |
Definition at line 102 of file OgreMemoryAllocatedObject.h.
|
inherited |
Definition at line 113 of file OgreMemoryAllocatedObject.h.
|
inherited |
Definition at line 119 of file OgreMemoryAllocatedObject.h.
|
inherited |
Definition at line 73 of file OgreMemoryAllocatedObject.h.
|
inherited |
operator new, with debug line info
Definition at line 68 of file OgreMemoryAllocatedObject.h.
|
inherited |
placement operator new
Definition at line 79 of file OgreMemoryAllocatedObject.h.
|
inherited |
Definition at line 91 of file OgreMemoryAllocatedObject.h.
|
inherited |
array operator new, with debug line info
Definition at line 86 of file OgreMemoryAllocatedObject.h.
void Ogre::GLESStateCacheManager::setBlendEquation | ( | GLenum | eq | ) |
Sets the current blend equation setting.
eq | The blend equation to use. |
void Ogre::GLESStateCacheManager::setBlendFunc | ( | GLenum | source, |
GLenum | dest | ||
) |
Sets the blending function.
source | The blend mode for the source. |
dest | The blend mode for the destination |
void Ogre::GLESStateCacheManager::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. |
void Ogre::GLESStateCacheManager::setClearDepth | ( | GLclampf | depth | ) |
Sets the clear depth in the range from [0..1].
depth | The clear depth to use. |
void Ogre::GLESStateCacheManager::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. |
void Ogre::GLESStateCacheManager::setCullFace | ( | GLenum | face | ) |
Sets the face culling setting.
face | The face culling mode to use. |
void Ogre::GLESStateCacheManager::setDepthFunc | ( | GLenum | func | ) |
Sets the current depth test function.
func | The depth test function to use. |
void Ogre::GLESStateCacheManager::setDepthMask | ( | GLboolean | mask | ) |
Sets the current depth mask setting.
mask | The depth mask to use. |
void Ogre::GLESStateCacheManager::setDisabled | ( | GLenum | flag | ) |
Disables a piece of OpenGL functionality.
flag | The function to disable. |
void Ogre::GLESStateCacheManager::setDiscardBuffers | ( | unsigned int | flags | ) |
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. |
void Ogre::GLESStateCacheManager::setEnabled | ( | GLenum | flag | ) |
Enables a piece of OpenGL functionality.
flag | The function to enable. |
void Ogre::GLESStateCacheManager::setPolygonMode | ( | GLenum | mode | ) |
Sets the current polygon rendering mode.
mode | The polygon mode to use. |
void Ogre::GLESStateCacheManager::setStencilMask | ( | GLuint | mask | ) |
Sets the stencil mask.
mask | The stencil mask to use |
void Ogre::GLESStateCacheManager::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. |
|
private |
Definition at line 56 of file OgreGLESStateCacheManager.h.
Copyright © 2012 Torus Knot Software Ltd
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.
Last modified Tue Apr 13 2021 08:53:15