GFXGLStateBlock Class Reference

#include <gfxGLStateBlock.h>

Inheritance diagram for GFXGLStateBlock:

Inheritance graph
[legend]
List of all members.

Public Member Functions

 GFXGLStateBlock (const GFXStateBlockDesc &desc)
virtual ~GFXGLStateBlock ()
void activate (const GFXGLStateBlock *oldState)
 Called by OpenGL device to active this state block.
virtual U32 getHashValue () const
 Returns the hash value of the desc that created this block.
virtual const GFXStateBlockDescgetDesc () const
 Returns a GFXStateBlockDesc that this block represents.
virtual void zombify ()
 When called the resource should destroy all device sensitive information (e.g. D3D resources in D3DPOOL_DEFAULT.
virtual void resurrect ()
 When called the resource should restore all device sensitive information destroyed by zombify().

Private Attributes

GFXStateBlockDesc mDesc
U32 mCachedHashValue

Constructor & Destructor Documentation

GFXGLStateBlock::GFXGLStateBlock ( const GFXStateBlockDesc desc  ) 

virtual GFXGLStateBlock::~GFXGLStateBlock (  )  [virtual]


Member Function Documentation

void 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.

virtual U32 GFXGLStateBlock::getHashValue (  )  const [virtual]

Returns the hash value of the desc that created this block.

Implements GFXStateBlock.

virtual const GFXStateBlockDesc& GFXGLStateBlock::getDesc (  )  const [virtual]

Returns a GFXStateBlockDesc that this block represents.

Implements GFXStateBlock.

virtual void GFXGLStateBlock::zombify (  )  [inline, virtual]

When called the resource should destroy all device sensitive information (e.g. D3D resources in D3DPOOL_DEFAULT.

Implements GFXResource.

virtual void GFXGLStateBlock::resurrect (  )  [inline, virtual]

When called the resource should restore all device sensitive information destroyed by zombify().

Implements GFXResource.


Member Data Documentation