MCPcopy Create free account
hub / github.com/FastLED/FastLED / addFx

Method addFx

src/fl/fx/fx_engine.h:63–63  ·  view source on GitHub ↗

* @brief 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 * the

Source from the content-addressed store, hash-verified

61 * then the object probably wasn't going to be deleted anyway.
62 */
63 int addFx(Fx &effect) { return addFx(fl::make_shared_no_tracking(effect)); }
64
65 /**
66 * @brief Requests removal of an effect from the engine, which might not

Callers

nothing calls this directly

Calls 1

make_shared_no_trackingFunction · 0.85

Tested by

no test coverage detected