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

Method dumpActivePostFX

Engine/source/postFx/postEffectManager.cpp:318–384  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

316}
317
318void PostEffectManager::dumpActivePostFX()
319{
320 EffectVector effects;
321
322 for (U32 i = 0; i < mEndOfFrameList.size(); i++)
323 {
324 PostEffect* effect = mEndOfFrameList[i];
325
326 if(effect->isEnabled())
327 effects.push_back(effect);
328 }
329
330 for (U32 i = 0; i < mAfterDiffuseList.size(); i++)
331 {
332 PostEffect* effect = mAfterDiffuseList[i];
333
334 if (effect->isEnabled())
335 effects.push_back(effect);
336 }
337
338
339 // Now check the bin maps.
340 EffectMap::Iterator mapIter = mAfterBinMap.begin();
341 for (; mapIter != mAfterBinMap.end(); mapIter++)
342 {
343 EffectVector& ef = mapIter->value;
344
345 for (U32 i = 0; i < ef.size(); i++)
346 {
347 PostEffect* effect = ef[i];
348
349 if (effect->isEnabled())
350 effects.push_back(effect);
351 }
352 }
353
354 mapIter = mBeforeBinMap.begin();
355 for (; mapIter != mBeforeBinMap.end(); mapIter++)
356 {
357 EffectVector& ef = mapIter->value;
358
359 for (U32 i = 0; i < ef.size(); i++)
360 {
361 PostEffect* effect = ef[i];
362
363 if (effect->isEnabled())
364 effects.push_back(effect);
365 }
366 }
367
368 // Resort the effects by priority.
369 effects.sort(&_effectPrioritySort);
370
371 Con::printf("PostEffectManager::dumpActivePostFX() - Beginning Dump");
372
373 for (U32 i = 0; i < effects.size(); i++)
374 {
375 PostEffect* effect = effects[i];

Callers 1

DefineEngineFunctionFunction · 0.80

Calls 8

printfFunction · 0.85
sizeMethod · 0.45
isEnabledMethod · 0.45
push_backMethod · 0.45
beginMethod · 0.45
endMethod · 0.45
sortMethod · 0.45
getNameMethod · 0.45

Tested by

no test coverage detected