Lightgraph
C++17 light-graph engine API reference
Loading...
Searching...
No Matches
types.hpp
Go to the documentation of this file.
1#pragma once
2
3#include <cstdint>
4#include <optional>
5
6namespace lightgraph {
7
16struct Color {
20};
21
25enum class ObjectType {
28 Line,
29 Cross,
31};
32
45
53 float speed = 1.0f;
55 std::optional<uint16_t> length;
59 std::optional<uint32_t> color;
77 bool linked = true;
78};
79
80} // namespace lightgraph
ObjectType
Built-in object topologies supported by the high-level engine API.
Definition types.hpp:25
8-bit RGB color.
Definition types.hpp:16
One emit request.
Definition types.hpp:49
uint8_t min_brightness
Minimum brightness bound.
Definition types.hpp:63
uint16_t behaviour_flags
Legacy behavior-flag bitmask.
Definition types.hpp:67
float speed
Light speed scalar.
Definition types.hpp:53
std::optional< uint32_t > color
Optional packed RGB color (0xRRGGBB); omitted means random color.
Definition types.hpp:59
std::optional< uint16_t > length
Optional explicit list length.
Definition types.hpp:55
uint16_t trail
Trail length.
Definition types.hpp:57
uint8_t emit_offset
Initial emit position offset.
Definition types.hpp:71
bool linked
Whether new lights should be linked.
Definition types.hpp:77
uint32_t duration_ms
Optional list duration in milliseconds (0 means library default behavior).
Definition types.hpp:73
int8_t model
Topology model index.
Definition types.hpp:51
uint8_t emit_groups
Optional emit-group mask override.
Definition types.hpp:69
uint16_t note_id
Optional note identifier for list reuse.
Definition types.hpp:61
uint8_t max_brightness
Maximum brightness bound.
Definition types.hpp:65
int8_t from
Optional source index override (-1 means automatic).
Definition types.hpp:75
Engine construction configuration.
Definition types.hpp:36
uint16_t pixel_count
Optional pixel-count override for configurable objects (line/cross/triangle).
Definition types.hpp:41
bool auto_emit
Enable or disable internal automatic emission on each update/tick.
Definition types.hpp:43
ObjectType object_type
Built-in topology implementation to instantiate.
Definition types.hpp:38