OGRE
1.10.12
Object-Oriented Graphics Rendering Engine
|
#include <OgreGL3PlusStateCacheManager.h>
Public Member Functions | |
GL3PlusStateCacheManager (void) | |
bool | activateGLTextureUnit (size_t 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 | bindGLFrameBuffer (GLenum target, GLuint buffer, bool force=false) |
Bind an OpenGL frame buffer. More... | |
void | bindGLProgramPipeline (GLuint handle) |
Bind an OpenGL separable program pipeline. More... | |
void | bindGLRenderBuffer (GLuint buffer, bool force=false) |
Bind an OpenGL frame buffer. More... | |
void | bindGLTexture (GLenum target, GLuint texture) |
Bind an OpenGL texture of any type. More... | |
void | bindGLVertexArray (GLuint vao) |
Bind an OpenGL Vertex array object. More... | |
void | clearCache () |
Clears all cached values. More... | |
void | deleteGLBuffer (GLenum target, GLuint buffer) |
Delete an OpenGL buffer of any type. More... | |
void | deleteGLFrameBuffer (GLenum target, GLuint buffer) |
Delete an OpenGL frame buffer. More... | |
void | deleteGLRenderBuffer (GLuint buffer) |
Delete an OpenGL render buffer. More... | |
void | disableTextureCoordGen (GLenum type) |
Disable the specified texture coordinate generation option for the currently active texture unit. More... | |
void | enableTextureCoordGen (GLenum type) |
Enable the specified texture coordinate generation option for the currently active texture unit. More... | |
GLclampf | getClearDepth (void) const |
Gets the clear depth in the range from [0..1]. More... | |
uchar * | getColourMask () |
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... | |
uchar | getDepthMask () const |
Gets the current depth mask setting. More... | |
GLenum | getPolygonMode (void) const |
Gets the current polygon rendering mode, fill, wireframe, points, etc. More... | |
uint32 | getStencilMask (void) const |
Gets the current stencil mask. More... | |
void | getViewport (int *array) |
void | initializeCache () |
See GL3PlusStateCacheManager.initializeCache. 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 | setBlendEquation (GLenum eqRGB, GLenum eqA) |
Set the blend equation for RGB and alpha separately. 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 | setEnabled (GLenum flag, bool enabled) |
Enables a piece of OpenGL functionality. More... | |
void | setPointSize (GLfloat size) |
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... | |
void | setViewport (GLint x, GLint y, GLsizei width, GLsizei height) |
Ogre::GL3PlusStateCacheManager::GL3PlusStateCacheManager | ( | void | ) |
void Ogre::GL3PlusStateCacheManager::initializeCache | ( | ) |
void Ogre::GL3PlusStateCacheManager::clearCache | ( | ) |
Clears all cached values.
void Ogre::GL3PlusStateCacheManager::bindGLFrameBuffer | ( | GLenum | target, |
GLuint | buffer, | ||
bool | force = false |
||
) |
Bind an OpenGL frame buffer.
target | The buffer target. |
buffer | The buffer ID. |
force | Optional parameter to force an update. |
void Ogre::GL3PlusStateCacheManager::bindGLRenderBuffer | ( | GLuint | buffer, |
bool | force = false |
||
) |
Bind an OpenGL frame buffer.
buffer | The buffer ID. |
force | Optional parameter to force an update. |
void Ogre::GL3PlusStateCacheManager::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::GL3PlusStateCacheManager::deleteGLFrameBuffer | ( | GLenum | target, |
GLuint | buffer | ||
) |
Delete an OpenGL frame buffer.
target | The buffer target. |
buffer | The buffer ID. |
force | Optional parameter to force an update. |
void Ogre::GL3PlusStateCacheManager::deleteGLRenderBuffer | ( | GLuint | buffer | ) |
Delete an OpenGL render buffer.
buffer | The buffer ID. |
force | Optional parameter to force an update. |
void Ogre::GL3PlusStateCacheManager::deleteGLBuffer | ( | GLenum | target, |
GLuint | buffer | ||
) |
Delete an OpenGL buffer of any type.
target | The buffer target. |
buffer | The buffer ID. |
force | Optional parameter to force an update. |
void Ogre::GL3PlusStateCacheManager::bindGLVertexArray | ( | GLuint | vao | ) |
Bind an OpenGL Vertex array object.
vao | The vertex array object ID. |
void Ogre::GL3PlusStateCacheManager::bindGLTexture | ( | GLenum | target, |
GLuint | texture | ||
) |
Bind an OpenGL texture of any type.
target | The texture target. |
texture | The texture ID. |
void Ogre::GL3PlusStateCacheManager::invalidateStateForTexture | ( | GLuint | texture | ) |
Invalidates the state associated with a particular texture ID.
texture | The texture ID. |
void Ogre::GL3PlusStateCacheManager::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. |
bool Ogre::GL3PlusStateCacheManager::activateGLTextureUnit | ( | size_t | unit | ) |
Activate an OpenGL texture unit.
unit | The texture unit to activate. |
void Ogre::GL3PlusStateCacheManager::setBlendEquation | ( | GLenum | eq | ) |
Sets the current blend equation setting.
eq | The blend equation to use. |
void Ogre::GL3PlusStateCacheManager::setBlendEquation | ( | GLenum | eqRGB, |
GLenum | eqA | ||
) |
Set the blend equation for RGB and alpha separately.
void Ogre::GL3PlusStateCacheManager::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::GL3PlusStateCacheManager::setDepthMask | ( | GLboolean | mask | ) |
Sets the current depth mask setting.
mask | The depth mask to use. |
|
inline |
Gets the current depth test function.
void Ogre::GL3PlusStateCacheManager::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::GL3PlusStateCacheManager::setClearDepth | ( | GLclampf | depth | ) |
Sets the clear depth in the range from [0..1].
depth | The clear depth to use. |
void Ogre::GL3PlusStateCacheManager::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::GL3PlusStateCacheManager::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::GL3PlusStateCacheManager::setStencilMask | ( | GLuint | mask | ) |
Sets the stencil mask.
mask | The stencil mask to use |
void Ogre::GL3PlusStateCacheManager::setEnabled | ( | GLenum | flag, |
bool | enabled | ||
) |
Enables a piece of OpenGL functionality.
flag | The function to enable. |
|
inline |
Gets the current polygon rendering mode, fill, wireframe, points, etc.
void Ogre::GL3PlusStateCacheManager::setPolygonMode | ( | GLenum | mode | ) |
Sets the current polygon rendering mode.
mode | The polygon mode to use. |
|
inline |
Sets the face culling mode.
void Ogre::GL3PlusStateCacheManager::setCullFace | ( | GLenum | face | ) |
Sets the face culling setting.
face | The face culling mode to use. |
void Ogre::GL3PlusStateCacheManager::bindGLProgramPipeline | ( | GLuint | handle | ) |
Bind an OpenGL separable program pipeline.
handle | The handle to the program pipeline |
void Ogre::GL3PlusStateCacheManager::enableTextureCoordGen | ( | GLenum | type | ) |
Enable the specified texture coordinate generation option for the currently active texture unit.
void Ogre::GL3PlusStateCacheManager::disableTextureCoordGen | ( | GLenum | type | ) |
Disable the specified texture coordinate generation option for the currently active texture unit.
void Ogre::GL3PlusStateCacheManager::setPointSize | ( | GLfloat | size | ) |
void Ogre::GL3PlusStateCacheManager::setViewport | ( | GLint | x, |
GLint | y, | ||
GLsizei | width, | ||
GLsizei | height | ||
) |
|
inlineinherited |
|
inlineinherited |
Gets the current colour mask setting.
|
inlineinherited |
Gets the current depth mask setting.
|
inlineinherited |
Gets the current stencil mask.