FastLED
3.10.8
Loading...
Searching...
No Matches
viz_base.h
Go to the documentation of this file.
1
#pragma once
2
#include "
fl/stl/noexcept.h
"
3
4
// IAnimartrix2Viz: abstract base class for all Animartrix2 visualizers.
5
//
6
// By default visualizers have no member variables — draw() bodies are identical
7
// to the former free functions. Stateful visualizers (e.g. Chasing_Spirals_SIMD)
8
// declare their cache as private members so state is owned per-instance rather
9
// than as a global singleton.
10
//
11
// Lifetime is managed by Animartrix2 via fl::unique_ptr<IAnimartrix2Viz>:
12
// a new instance is constructed when the selected animation changes, and the
13
// previous instance (with its cached state) is automatically destroyed.
14
15
namespace
fl
{
16
17
class
IAnimartrix2Viz
{
18
public
:
19
virtual
~IAnimartrix2Viz
()
FL_NO_EXCEPT
= default;
20
virtual
void
draw
(
Context
&ctx)
FL_NO_EXCEPT
= 0;
21
};
22
23
}
// namespace fl
fl::IAnimartrix2Viz::~IAnimartrix2Viz
virtual ~IAnimartrix2Viz() FL_NO_EXCEPT=default
fl::IAnimartrix2Viz::draw
virtual void draw(Context &ctx) FL_NO_EXCEPT=0
fl::IAnimartrix2Viz
Definition
viz_base.h:17
fl::FL_NO_EXCEPT
u8 u8 fract8 blur_amount FL_NO_EXCEPT
Definition
blur.h:186
fl
Base definition for an LED controller.
Definition
crgb.hpp:179
noexcept.h
fl::Context
Definition
context.h:24
fl
fx
2d
animartrix_detail
viz
viz_base.h
Generated on Sun Oct 18 2026 00:56:51 for FastLED by
1.13.2