OGRE  1.12.13
Object-Oriented Graphics Rendering Engine
Ogre::GL3PlusStateCacheManager Class Reference

#include <OgreGL3PlusStateCacheManager.h>

+ Inheritance diagram for Ogre::GL3PlusStateCacheManager:

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...
 
GLenum getCullFace (void) const
 Sets the face culling mode. More...
 
GLenum getDepthFunc (void) const
 Gets the current depth test function. More...
 
GLenum getPolygonMode (void) const
 Gets the current polygon rendering mode, fill, wireframe, points, etc. More...
 
void initializeCache ()
 See GL3PlusStateCacheManager.initializeCache. More...
 
void invalidateStateForTexture (GLuint texture)
 Invalidates the state associated with a particular texture ID. More...
 
void setBlendEquation (GLenum eqRGB, GLenum eqA)
 Set the blend equation for RGB and alpha separately. More...
 
void setBlendFunc (GLenum source, GLenum dest, GLenum sourceA, GLenum destA)
 Set the blend function for RGB and alpha separately. 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 (const Rect &r)
 
- Public Member Functions inherited from Ogre::GLStateCacheManagerCommon
virtual ~GLStateCacheManagerCommon ()
 
uchargetColourMask ()
 Gets the current colour mask setting. More...
 
uchar getDepthMask () const
 Gets the current depth mask setting. More...
 
uint32 getStencilMask (void) const
 Gets the current stencil mask. More...
 

Constructor & Destructor Documentation

◆ GL3PlusStateCacheManager()

Ogre::GL3PlusStateCacheManager::GL3PlusStateCacheManager ( void  )

Member Function Documentation

◆ initializeCache()

void Ogre::GL3PlusStateCacheManager::initializeCache ( )

◆ clearCache()

void Ogre::GL3PlusStateCacheManager::clearCache ( )

Clears all cached values.

◆ bindGLFrameBuffer()

void Ogre::GL3PlusStateCacheManager::bindGLFrameBuffer ( GLenum  target,
GLuint  buffer,
bool  force = false 
)

Bind an OpenGL frame buffer.

Parameters
targetThe buffer target.
bufferThe buffer ID.
forceOptional parameter to force an update.

◆ bindGLRenderBuffer()

void Ogre::GL3PlusStateCacheManager::bindGLRenderBuffer ( GLuint  buffer,
bool  force = false 
)

Bind an OpenGL frame buffer.

Parameters
bufferThe buffer ID.
forceOptional parameter to force an update.

◆ bindGLBuffer()

void Ogre::GL3PlusStateCacheManager::bindGLBuffer ( GLenum  target,
GLuint  buffer,
bool  force = false 
)

Bind an OpenGL buffer of any type.

Parameters
targetThe buffer target.
bufferThe buffer ID.
forceOptional parameter to force an update.

◆ deleteGLFrameBuffer()

void Ogre::GL3PlusStateCacheManager::deleteGLFrameBuffer ( GLenum  target,
GLuint  buffer 
)

Delete an OpenGL frame buffer.

Parameters
targetThe buffer target.
bufferThe buffer ID.

◆ deleteGLRenderBuffer()

void Ogre::GL3PlusStateCacheManager::deleteGLRenderBuffer ( GLuint  buffer)

Delete an OpenGL render buffer.

Parameters
bufferThe buffer ID.

◆ deleteGLBuffer()

void Ogre::GL3PlusStateCacheManager::deleteGLBuffer ( GLenum  target,
GLuint  buffer 
)

Delete an OpenGL buffer of any type.

Parameters
targetThe buffer target.
bufferThe buffer ID.

◆ bindGLVertexArray()

void Ogre::GL3PlusStateCacheManager::bindGLVertexArray ( GLuint  vao)

Bind an OpenGL Vertex array object.

Parameters
vaoThe vertex array object ID.

◆ bindGLTexture()

void Ogre::GL3PlusStateCacheManager::bindGLTexture ( GLenum  target,
GLuint  texture 
)

Bind an OpenGL texture of any type.

Parameters
targetThe texture target.
textureThe texture ID.

◆ invalidateStateForTexture()

void Ogre::GL3PlusStateCacheManager::invalidateStateForTexture ( GLuint  texture)

Invalidates the state associated with a particular texture ID.

Parameters
textureThe texture ID.

◆ setTexParameteri()

void Ogre::GL3PlusStateCacheManager::setTexParameteri ( GLenum  target,
GLenum  pname,
GLint  param 
)

Sets an integer parameter value per texture target.

Parameters
targetThe texture target.
pnameThe parameter name.
paramThe parameter value.

◆ activateGLTextureUnit()

bool Ogre::GL3PlusStateCacheManager::activateGLTextureUnit ( size_t  unit)

Activate an OpenGL texture unit.

Parameters
unitThe texture unit to activate.
Returns
Whether or not the texture unit was successfully activated.

◆ setBlendEquation()

void Ogre::GL3PlusStateCacheManager::setBlendEquation ( GLenum  eqRGB,
GLenum  eqA 
)

Set the blend equation for RGB and alpha separately.

◆ setBlendFunc()

void Ogre::GL3PlusStateCacheManager::setBlendFunc ( GLenum  source,
GLenum  dest,
GLenum  sourceA,
GLenum  destA 
)

Set the blend function for RGB and alpha separately.

◆ setDepthMask()

void Ogre::GL3PlusStateCacheManager::setDepthMask ( GLboolean  mask)

Sets the current depth mask setting.

Parameters
maskThe depth mask to use.

◆ getDepthFunc()

GLenum Ogre::GL3PlusStateCacheManager::getDepthFunc ( void  ) const
inline

Gets the current depth test function.

Returns
The current depth test function.

◆ setDepthFunc()

void Ogre::GL3PlusStateCacheManager::setDepthFunc ( GLenum  func)

Sets the current depth test function.

Parameters
funcThe depth test function to use.

◆ getClearDepth()

GLclampf Ogre::GL3PlusStateCacheManager::getClearDepth ( void  ) const
inline

Gets the clear depth in the range from [0..1].

Returns
The current clearing depth.

◆ setClearDepth()

void Ogre::GL3PlusStateCacheManager::setClearDepth ( GLclampf  depth)

Sets the clear depth in the range from [0..1].

Parameters
depthThe clear depth to use.

◆ setClearColour()

void Ogre::GL3PlusStateCacheManager::setClearColour ( GLclampf  red,
GLclampf  green,
GLclampf  blue,
GLclampf  alpha 
)

Sets the color to clear to.

Parameters
redThe red component.
greenThe green component.
blueThe blue component.
alphaThe alpha component.

◆ setColourMask()

void Ogre::GL3PlusStateCacheManager::setColourMask ( GLboolean  red,
GLboolean  green,
GLboolean  blue,
GLboolean  alpha 
)

Sets the current colour mask.

Parameters
redThe red component.
greenThe green component.
blueThe blue component.
alphaThe alpha component.

◆ setStencilMask()

void Ogre::GL3PlusStateCacheManager::setStencilMask ( GLuint  mask)

Sets the stencil mask.

Parameters
maskThe stencil mask to use

◆ setEnabled()

void Ogre::GL3PlusStateCacheManager::setEnabled ( GLenum  flag,
bool  enabled 
)

Enables a piece of OpenGL functionality.

◆ getPolygonMode()

GLenum Ogre::GL3PlusStateCacheManager::getPolygonMode ( void  ) const
inline

Gets the current polygon rendering mode, fill, wireframe, points, etc.

Returns
The current polygon rendering mode.

◆ setPolygonMode()

void Ogre::GL3PlusStateCacheManager::setPolygonMode ( GLenum  mode)

Sets the current polygon rendering mode.

Parameters
modeThe polygon mode to use.

◆ getCullFace()

GLenum Ogre::GL3PlusStateCacheManager::getCullFace ( void  ) const
inline

Sets the face culling mode.

Returns
The current face culling mode

◆ setCullFace()

void Ogre::GL3PlusStateCacheManager::setCullFace ( GLenum  face)

Sets the face culling setting.

Parameters
faceThe face culling mode to use.

◆ bindGLProgramPipeline()

void Ogre::GL3PlusStateCacheManager::bindGLProgramPipeline ( GLuint  handle)

Bind an OpenGL separable program pipeline.

Parameters
handleThe handle to the program pipeline

◆ enableTextureCoordGen()

void Ogre::GL3PlusStateCacheManager::enableTextureCoordGen ( GLenum  type)

Enable the specified texture coordinate generation option for the currently active texture unit.

◆ disableTextureCoordGen()

void Ogre::GL3PlusStateCacheManager::disableTextureCoordGen ( GLenum  type)

Disable the specified texture coordinate generation option for the currently active texture unit.

◆ setPointSize()

void Ogre::GL3PlusStateCacheManager::setPointSize ( GLfloat  size)

◆ setViewport()

void Ogre::GL3PlusStateCacheManager::setViewport ( const Rect r)

The documentation for this class was generated from the following file: