FastLED
3.9.15
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
6
namespace
fl
{
7
8
class
AudioBatch
;
// forward declaration — pointer only, no include needed
9
10
struct
DrawContext
{
11
fl::u32
now
;
12
fl::span<CRGB>
leds
;
13
u16
frame_time
= 0;
14
float
speed
= 1.0f;
15
const
AudioBatch
*
audio
=
nullptr
;
16
DrawContext
(fl::u32
now
,
fl::span<CRGB>
leds
, u16
frame_time
= 0,
17
float
speed
= 1.0f,
const
AudioBatch
*
audio
=
nullptr
)
18
:
now
(
now
),
leds
(
leds
),
frame_time
(
frame_time
),
speed
(
speed
),
19
audio
(
audio
) {}
20
};
21
22
}
// namespace fl
fl::AudioBatch
Definition
audio_batch.h:66
fl::span
Definition
span.h:385
fl
Base definition for an LED controller.
Definition
crgb.hpp:179
span.h
stdint.h
fl::DrawContext::now
fl::u32 now
Definition
draw_context.h:11
fl::DrawContext::leds
fl::span< CRGB > leds
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)
Definition
draw_context.h:16
fl::DrawContext::speed
float speed
Definition
draw_context.h:14
fl::DrawContext::frame_time
u16 frame_time
Definition
draw_context.h:13
fl::DrawContext::audio
const AudioBatch * audio
Non-owning. Null when no audio.
Definition
draw_context.h:15
fl
fx
detail
draw_context.h
Generated on Tue Jun 16 2026 00:06:59 for FastLED by
1.13.2