FastLED 3.9.15
Loading...
Searching...
No Matches
fx_layer.h
Go to the documentation of this file.
1#pragma once
2
3
4#include "fl/stdint.h"
5#include "crgb.h"
6#include "fl/namespace.h"
7#include "fl/memory.h"
8#include "fl/vector.h"
9#include "fl/warn.h"
10#include "fx/frame.h"
11#include "fx/fx.h"
12
13
14namespace fl {
15
17class FxLayer {
18 public:
19 void setFx(fl::shared_ptr<Fx> newFx);
20
21 void draw(fl::u32 now);
22
23 void pause(fl::u32 now);
24
25 void release();
26
28
30
31 private:
34 bool running = false;
35};
36
37} // namespace fl
void draw(fl::u32 now)
Definition fx_layer.cpp:19
fl::shared_ptr< Fx > getFx()
Definition fx_layer.cpp:47
void pause(fl::u32 now)
Definition fx_layer.cpp:35
CRGB * getSurface()
Definition fx_layer.cpp:51
void setFx(fl::shared_ptr< Fx > newFx)
Definition fx_layer.cpp:12
fl::shared_ptr< Fx > fx
Definition fx_layer.h:33
fl::shared_ptr< Frame > frame
Definition fx_layer.h:32
void release()
Definition fx_layer.cpp:42
bool running
Definition fx_layer.h:34
Defines the red, green, and blue (RGB) pixel struct.
Implements the FastLED namespace macros.
IMPORTANT!
Definition crgb.h:20
#define FASTLED_SMART_PTR(type)
Definition ptr.h:33
Representation of an RGB pixel (Red, Green, Blue)
Definition crgb.h:86