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

Method onStartOfFrame

Engine/source/postFx/postEffectVis.cpp:179–202  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

177}
178
179void PostEffectVis::onStartOfFrame()
180{
181 if ( mWindows.empty() )
182 return;
183 if ( !_getContentControl()->isAwake() )
184 return;
185
186 // Restore vis windows to a default state.
187 // This ensures to users that open PostEffects that are not
188 // actively being processed are obvious.
189
190 VisVector::iterator itr = mWindows.begin();
191 for ( ; itr != mWindows.end(); itr++ )
192 {
193 for ( U32 i = 0; i < TexCount; i++ )
194 {
195 if ( !itr->bmp[i] || itr->pfx->getRenderTime() == PFXTexGenOnDemand )
196 continue;
197
198 itr->bmp[i]->setBitmap( NULL );
199 _setDefaultCaption( *itr, i );
200 }
201 }
202}
203
204void PostEffectVis::onPFXProcessed( PostEffect *pfx )
205{

Callers 1

_handleDeviceEventMethod · 0.80

Calls 5

getRenderTimeMethod · 0.80
emptyMethod · 0.45
beginMethod · 0.45
endMethod · 0.45
setBitmapMethod · 0.45

Tested by

no test coverage detected