FastLED 3.9.15
Loading...
Searching...
No Matches

◆ addFx() [1/2]

int fl::FxEngine::addFx ( Fx & effect)
inline

Adds a new effect to the engine.

Allocate from static memory. This is not reference tracked and an object passed in must never be deleted, as the engine will use a non tracking Ptr which may outlive a call to removeFx() and the engine will thefore not know that an object has been deleted. But if it's a static object that's then the object probably wasn't going to be deleted anyway.

Definition at line 68 of file fx_engine.h.

68{ return addFx(fl::Ptr<Fx>::NoTracking(effect)); }
int addFx(FxPtr effect)
Adds a new effect to the engine.
Definition fx_engine.cpp:16
static Ptr NoTracking(T &referent)
Definition ptr.h:116

References addFx(), and fl::Ptr< T >::NoTracking().

Referenced by addFx().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: