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 12 of file fx_engine.cpp.
12 {
13 float fps = 0;
15
16
17 VideoFxWrapperPtr vid_fx = VideoFxWrapperPtr::New(effect);
18 vid_fx->setFade(0, 0);
19 effect = vid_fx;
20 }
23 if (!ok) {
24 return -1;
25 }
26 if (auto_set) {
29 }
31}
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.