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

Method reload

Engine/source/postFx/postEffect.cpp:1614–1633  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1612}
1613
1614void PostEffect::reload()
1615{
1616 // Reload the shader if we have one or mark it
1617 // for updating when its processed next.
1618 if ( mShader )
1619 mShader->reload();
1620 else
1621 mUpdateShader = true;
1622
1623 // Null stateblock so it is reloaded.
1624 mStateBlock = NULL;
1625
1626 // Call reload on any children
1627 // this PostEffect may have.
1628 for ( U32 i = 0; i < size(); i++ )
1629 {
1630 PostEffect *effect = (PostEffect*)(*this)[i];
1631 effect->reload();
1632 }
1633}
1634
1635void PostEffect::setTexture( U32 index, const String &texFilePath )
1636{

Callers 1

postEffect.cppFile · 0.45

Calls 1

sizeFunction · 0.50

Tested by

no test coverage detected