2019-11-23 00:07:25 +00:00
|
|
|
struct led
|
|
|
|
{
|
|
|
|
s32 Index;
|
|
|
|
v4 Position;
|
|
|
|
};
|
|
|
|
|
|
|
|
union pixel
|
|
|
|
{
|
|
|
|
struct
|
|
|
|
{
|
|
|
|
u8 R;
|
|
|
|
u8 G;
|
|
|
|
u8 B;
|
|
|
|
};
|
|
|
|
u8 Channels[3];
|
|
|
|
};
|
|
|
|
|
2019-11-23 07:33:48 +00:00
|
|
|
struct leds_in_universe_range
|
|
|
|
{
|
|
|
|
s32 RangeStart;
|
|
|
|
s32 RangeOnePastLast;
|
|
|
|
s32 Universe;
|
|
|
|
};
|
|
|
|
|
2019-11-23 00:07:25 +00:00
|
|
|
struct assembly
|
|
|
|
{
|
2019-11-23 07:33:48 +00:00
|
|
|
static_memory_arena Arena;
|
2019-11-23 00:07:25 +00:00
|
|
|
|
|
|
|
string Name;
|
|
|
|
string FilePath;
|
|
|
|
|
|
|
|
s32 LEDCount;
|
|
|
|
pixel* Colors;
|
|
|
|
led* LEDs;
|
2019-11-23 07:33:48 +00:00
|
|
|
|
|
|
|
s32 LEDUniverseMapCount;
|
|
|
|
leds_in_universe_range* LEDUniverseMap;
|
2019-11-23 00:07:25 +00:00
|
|
|
};
|
2019-11-29 05:12:57 +00:00
|
|
|
|
|
|
|
TYPEDEF_ARRAY(assembly);
|