OGRE 14.2
Object-Oriented Graphics Rendering Engine
Loading...
Searching...
No Matches
Ogre::GLStateCacheManager Class Reference

#include <OgreGLStateCacheManager.h>

+ Inheritance diagram for Ogre::GLStateCacheManager:

Public Member Functions

 GLStateCacheManager (void)
 
bool activateGLTextureUnit (size_t unit)
 Activate an OpenGL texture unit.
 
void bindGLBuffer (GLenum target, GLuint buffer)
 Bind an OpenGL buffer of any type.
 
void bindGLTexture (GLenum target, GLuint texture)
 Bind an OpenGL texture of any type.
 
void clearCache ()
 Clears all cached values.
 
void deleteGLBuffer (GLenum target, GLuint buffer)
 Delete an OpenGL buffer of any type.
 
void disableTextureCoordGen (GLenum type)
 Disable the specified texture coordinate generation option for the currently active texture unit.
 
void enableTextureCoordGen (GLenum type)
 Enable the specified texture coordinate generation option for the currently active texture unit.
 
GLclampf getClearDepth (void) const
 Gets the clear depth in the range from [0..1].
 
GLenum getCullFace (void) const
 Sets the face culling mode.
 
GLenum getDepthFunc (void) const
 Gets the current depth test function.
 
GLenum getPolygonMode (void) const
 Gets the current polygon rendering mode, fill, wireframe, points, etc.
 
void initializeCache ()
 See GLStateCacheManager.initializeCache.
 
void invalidateStateForTexture (GLuint texture)
 Invalidates the state associated with a particular texture ID.
 
void setBlendEquation (GLenum eqRGB, GLenum eqA)
 Set the blend equation for RGB and alpha separately.
 
void setBlendFunc (GLenum source, GLenum dest, GLenum sourceA, GLenum destA)
 Set the blend function for RGB and alpha separately.
 
void setClearColour (GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha)
 Sets the color to clear to.
 
void setClearDepth (GLclampf depth)
 Sets the clear depth in the range from [0..1].
 
void setColourMask (GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha)
 Sets the current colour mask.
 
void setCullFace (GLenum face)
 Sets the face culling setting.
 
void setDepthFunc (GLenum func)
 Sets the current depth test function.
 
void setDepthMask (GLboolean mask)
 Sets the current depth mask setting.
 
void setEnabled (GLenum flag, bool enabled)
 Enables a piece of OpenGL functionality.
 
void setLightAmbient (GLfloat r, GLfloat g, GLfloat b)
 
void setMaterialAmbient (GLfloat r, GLfloat g, GLfloat b, GLfloat a)
 
void setMaterialDiffuse (GLfloat r, GLfloat g, GLfloat b, GLfloat a)
 
void setMaterialEmissive (GLfloat r, GLfloat g, GLfloat b, GLfloat a)
 
void setMaterialShininess (GLfloat shininess)
 
void setMaterialSpecular (GLfloat r, GLfloat g, GLfloat b, GLfloat a)
 
void setPointParameters (const GLfloat *attenuation, float minSize=-1, float maxSize=-1)
 
void setPointSize (GLfloat size)
 
void setPolygonMode (GLenum mode)
 Sets the current polygon rendering mode.
 
void setShadeModel (GLenum model)
 
void setStencilMask (GLuint mask)
 Sets the stencil mask.
 
void setTexParameteri (GLenum target, GLenum pname, GLint param)
 Sets an integer parameter value per texture target.
 
void setViewport (const Rect &r)
 
- Public Member Functions inherited from Ogre::GLStateCacheManagerCommon
virtual ~GLStateCacheManagerCommon ()
 
uchargetColourMask ()
 Gets the current colour mask setting.
 
uchar getDepthMask () const
 Gets the current depth mask setting.
 
uint32 getStencilMask (void) const
 Gets the current stencil mask.
 

Constructor & Destructor Documentation

◆ GLStateCacheManager()

Ogre::GLStateCacheManager::GLStateCacheManager ( void )

Member Function Documentation

◆ initializeCache()

void Ogre::GLStateCacheManager::initializeCache ( )

◆ clearCache()

void Ogre::GLStateCacheManager::clearCache ( )

Clears all cached values.

◆ bindGLBuffer()

void Ogre::GLStateCacheManager::bindGLBuffer ( GLenum target,
GLuint buffer )

Bind an OpenGL buffer of any type.

Parameters
targetThe buffer target.
bufferThe buffer ID.

◆ deleteGLBuffer()

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

Delete an OpenGL buffer of any type.

Parameters
targetThe buffer target.
bufferThe buffer ID.

◆ bindGLTexture()

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

Bind an OpenGL texture of any type.

Parameters
targetThe texture target.
textureThe texture ID.

◆ invalidateStateForTexture()

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

Invalidates the state associated with a particular texture ID.

Parameters
textureThe texture ID.

◆ setTexParameteri()

void Ogre::GLStateCacheManager::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::GLStateCacheManager::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::GLStateCacheManager::setBlendEquation ( GLenum eqRGB,
GLenum eqA )

Set the blend equation for RGB and alpha separately.

◆ setBlendFunc()

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

Set the blend function for RGB and alpha separately.

◆ setShadeModel()

void Ogre::GLStateCacheManager::setShadeModel ( GLenum model)

◆ setLightAmbient()

void Ogre::GLStateCacheManager::setLightAmbient ( GLfloat r,
GLfloat g,
GLfloat b )

◆ setDepthMask()

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

Sets the current depth mask setting.

Parameters
maskThe depth mask to use.

◆ getDepthFunc()

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

Gets the current depth test function.

Returns
The current depth test function.

◆ setDepthFunc()

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

Sets the current depth test function.

Parameters
funcThe depth test function to use.

◆ getClearDepth()

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

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

Returns
The current clearing depth.

◆ setClearDepth()

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

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

Parameters
depthThe clear depth to use.

◆ setClearColour()

void Ogre::GLStateCacheManager::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::GLStateCacheManager::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::GLStateCacheManager::setStencilMask ( GLuint mask)

Sets the stencil mask.

Parameters
maskThe stencil mask to use

◆ setEnabled()

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

Enables a piece of OpenGL functionality.

◆ getPolygonMode()

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

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

Returns
The current polygon rendering mode.

◆ setPolygonMode()

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

Sets the current polygon rendering mode.

Parameters
modeThe polygon mode to use.

◆ getCullFace()

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

Sets the face culling mode.

Returns
The current face culling mode

◆ setCullFace()

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

Sets the face culling setting.

Parameters
faceThe face culling mode to use.

◆ enableTextureCoordGen()

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

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

◆ disableTextureCoordGen()

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

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

◆ setMaterialAmbient()

void Ogre::GLStateCacheManager::setMaterialAmbient ( GLfloat r,
GLfloat g,
GLfloat b,
GLfloat a )

◆ setMaterialDiffuse()

void Ogre::GLStateCacheManager::setMaterialDiffuse ( GLfloat r,
GLfloat g,
GLfloat b,
GLfloat a )

◆ setMaterialEmissive()

void Ogre::GLStateCacheManager::setMaterialEmissive ( GLfloat r,
GLfloat g,
GLfloat b,
GLfloat a )

◆ setMaterialSpecular()

void Ogre::GLStateCacheManager::setMaterialSpecular ( GLfloat r,
GLfloat g,
GLfloat b,
GLfloat a )

◆ setMaterialShininess()

void Ogre::GLStateCacheManager::setMaterialShininess ( GLfloat shininess)

◆ setPointSize()

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

◆ setPointParameters()

void Ogre::GLStateCacheManager::setPointParameters ( const GLfloat * attenuation,
float minSize = -1,
float maxSize = -1 )

◆ setViewport()

void Ogre::GLStateCacheManager::setViewport ( const Rect & r)

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