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 63 of file fx_engine.h.

63{ return addFx(fl::make_shared_no_tracking(effect)); }
int addFx(FxPtr effect)
Adds a new effect to the engine.
Definition fx_engine.cpp:12
shared_ptr< T > make_shared_no_tracking(T &obj)
Definition shared_ptr.h:379

References addFx(), and fl::make_shared_no_tracking().

Referenced by addFx().

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