Adds a new effect to the engine.
- Parameters
-
effect | Pointer to the effect to be added. |
- Returns
- The index of the added effect, or -1 if the effect couldn't be added.
Definition at line 16 of file fx_engine.cpp.
16 {
17 float fps = 0;
19
20
21 VideoFxWrapperPtr vid_fx = VideoFxWrapperPtr::New(effect);
22 vid_fx->setFade(0, 0);
23 effect = vid_fx;
24 }
27 if (!ok) {
28 return -1;
29 }
30 if (auto_set) {
33 }
35}
FxCompositor mCompositor
Handles effect transitions and rendering.
int mCurrId
Id of the current effect.
IntFxMap mEffects
Collection of effects.
References mCompositor, mCounter, mCurrId, mEffects, and mInterpolate.