Torque3D Documentation / _generateds / GFXD3D9StateBlock

GFXD3D9StateBlock

Engine/source/gfx/D3D9/gfxD3D9StateBlock.h

More...

Private Attributes

Public Functions

GFXD3D9StateBlock(const GFXStateBlockDesc & desc, IDirect3DDevice9 * d3dDevice)

Called by D3D9 device to active this state block.

Returns a GFXStateBlockDesc that this block represents.

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

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

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

Detailed Description

Private Attributes

U32 mCachedHashValue 
U32 mColorMask 
IDirect3DDevice9 * mD3DDevice 

Handle for D3DDevice.

GFXStateBlockDesc mDesc 
U32 mZBias 
U32 mZSlopeBias 

Public Functions

GFXD3D9StateBlock(const GFXStateBlockDesc & desc, IDirect3DDevice9 * d3dDevice)

~GFXD3D9StateBlock()

activate(GFXD3D9StateBlock * oldState)

Called by D3D9 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