MCPcopy Create free account
hub / github.com/TorqueGameEngines/Torque3D / _setupStateBlock

Method _setupStateBlock

Engine/source/postFx/postEffect.cpp:733–745  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

731}
732
733void PostEffect::_setupStateBlock( const SceneRenderState *state )
734{
735 if ( mStateBlock.isNull() )
736 {
737 GFXStateBlockDesc desc;
738 if ( mStateBlockData )
739 desc = mStateBlockData->getState();
740
741 mStateBlock = GFX->createStateBlock( desc );
742 }
743
744 GFX->setStateBlock( mStateBlock );
745}
746
747void PostEffect::_setupConstants( const SceneRenderState *state )
748{

Callers

nothing calls this directly

Calls 4

createStateBlockMethod · 0.80
isNullMethod · 0.45
getStateMethod · 0.45
setStateBlockMethod · 0.45

Tested by

no test coverage detected