GFXGLStateBlock
Engine/source/gfx/gl/gfxGLStateBlock.h
Private Attributes
Public Functions
GFXGLStateBlock(const GFXStateBlockDesc & desc)
activate(const GFXGLStateBlock * oldState)
Called by OpenGL device to active this state block.
getDesc()
Returns a GFXStateBlockDesc that this block represents.
Returns the hash value of the desc that created this block.
Detailed Description
Private Attributes
U32 mCachedHashValue
GFXStateBlockDesc mDesc
U32 mSamplerObjects [GFX_TEXTURE_STAGE_COUNT]
Public Functions
GFXGLStateBlock(const GFXStateBlockDesc & desc)
~GFXGLStateBlock()
activate(const GFXGLStateBlock * oldState)
Called by OpenGL device to active this state block.
Parameters:
oldState | The current state, used to make sure we don't set redundant states on the device. Pass NULL to reset all states. |
getDesc()
Reimplemented from: GFXStateBlock
getHashValue()
Reimplemented from: GFXStateBlock
resurrect()
Reimplemented from: GFXResource
zombify()
Reimplemented from: GFXResource