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

◆ setCustomViz()

void fl::Animartrix::setCustomViz ( IAnimartrix2Viz * viz)
inline

Set a fully custom viz that bypasses the animation enum entirely.

When set, this viz is used for all draw() calls regardless of which animation enum is selected. Pass nullptr to revert to enum-based dispatch. This is intended for external/user-provided animartrix implementations.

Definition at line 321 of file animartrix.hpp.

321 {
322 mCustomViz.reset(viz);
323 mViz.reset();
324 }
fl::unique_ptr< IAnimartrix2Viz > mCustomViz
fl::unique_ptr< IAnimartrix2Viz > mViz

References mCustomViz, and mViz.