RotateModifier
Source:
RotateModifier.h
RotateModifier¶
src/light/modifiers/RotateModifier.h:32Inherits:
ModifierBase
Modifier rotating the 2D image about its centre over time.
Public Attributes¶
uint8_t speed = 1
Public Methods¶
virtual inline Dim dimensions() const override
: Which axes the modifier can transform.
virtual inline bool hasModifyLive() const override
: True iff this modifier does per-frame work (overrides modifyLive).
virtual inline void defineControls() override
: defineControls MUST be idempotent and pure: only controls_.clear() + controls_.addX().
virtual inline bool affectsPrepare(constchar *) const override
: A modifier control change alters the mapping, so the owning Layer must rebuild it — the pipeline-wide rebuild path.
virtual inline void modifyLive(Coord3D &, const Coord3D &) const override
: DYNAMIC, per-frame at render time: remap a coordinate without rebuilding the mapping (smooth rotation/scroll).
virtual inline void tick() override