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

Method _setIsEnabled

Engine/source/postFx/postEffect.cpp:1559–1569  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1557}
1558
1559bool PostEffect::_setIsEnabled( void *object, const char *index, const char *data )
1560{
1561 bool enabled = dAtob( data );
1562 if ( enabled )
1563 static_cast<PostEffect*>( object )->enable();
1564 else
1565 static_cast<PostEffect*>( object )->disable();
1566
1567 // Always return false from a protected field.
1568 return false;
1569}
1570
1571void PostEffect::enable()
1572{

Callers

nothing calls this directly

Calls 3

dAtobFunction · 0.85
enableMethod · 0.45
disableMethod · 0.45

Tested by

no test coverage detected