FastLED
3.10.8
Loading...
Searching...
No Matches
draw_context.h
Go to the documentation of this file.
1
#pragma once
2
3
#include "
fl/stl/stdint.h
"
4
#include "
fl/stl/span.h
"
5
#include "
fl/stl/noexcept.h
"
6
7
namespace
fl
{
8
9
class
AudioBatch
;
// forward declaration — pointer only, no include needed
10
11
struct
DrawContext
{
12
fl::u32
now
;
13
fl::span<CRGB>
leds
;
14
u16
frame_time
= 0;
15
float
speed
= 1.0f;
16
const
AudioBatch
*
audio
=
nullptr
;
17
DrawContext
(fl::u32
now
,
fl::span<CRGB>
leds
, u16
frame_time
= 0,
18
float
speed
= 1.0f,
const
AudioBatch
*
audio
=
nullptr
)
19
FL_NO_EXCEPT
:
now
(
now
),
leds
(
leds
),
frame_time
(
frame_time
),
speed
(
speed
),
20
audio
(
audio
) {}
21
};
22
23
}
// namespace fl
fl::AudioBatch
Definition
audio_batch.h:66
fl::span
Definition
span.h:410
fl::FL_NO_EXCEPT
u8 u8 fract8 blur_amount FL_NO_EXCEPT
Definition
blur.h:186
fl
Base definition for an LED controller.
Definition
AutoResearchNet.h:22
noexcept.h
span.h
stdint.h
fl::DrawContext::now
fl::u32 now
Definition
draw_context.h:12
fl::DrawContext::DrawContext
DrawContext(fl::u32 now, fl::span< CRGB > leds, u16 frame_time=0, float speed=1.0f, const AudioBatch *audio=nullptr) FL_NO_EXCEPT
Definition
draw_context.h:17
fl::DrawContext::leds
fl::span< CRGB > leds
Definition
draw_context.h:13
fl::DrawContext::speed
float speed
Definition
draw_context.h:15
fl::DrawContext::frame_time
u16 frame_time
Definition
draw_context.h:14
fl::DrawContext::audio
const AudioBatch * audio
Non-owning. Null when no audio.
Definition
draw_context.h:16
dox
dox
fastled
src
fl
fx
detail
draw_context.h
Generated on Thu Oct 22 2026 05:45:52 for FastLED by
1.13.2