Lamp-Da 0.1
A compact lantern project
Loading...
Searching...
No Matches
simulator_state.h
Go to the documentation of this file.
1
5#ifndef SIMULATOR_STATE_H
6#define SIMULATOR_STATE_H
7
8#include <SFML/Graphics.hpp>
9
11
12namespace simulator {
13
15
17namespace globals {
18
21{
22 bool paused = false;
23 bool verbose = false;
24 bool isButtonPressed = false;
25 char lastKeyPressed = 0;
26 uint8_t tickAndPause = 0;
27 uint16_t brightness = 255;
28 uint32_t colorBuffer[_LampTy::ledCount] = {};
29 uint32_t indicatorColor = 0;
30 float slowTimeFactor = 1.0;
31};
32
35
36} // namespace globals
37
38} // namespace simulator
39
40#endif
Define the main led strip interaction object.
GlobalSimStateTy state
Store the global simulation state.
Definition: simulator_state.cpp:7
Simulator dedicated namespace.
Definition: default_simulation.h:8
Main interface between the user and the hardware of the lamp.
Definition: lamp_type.hpp:114
static constexpr uint16_t ledCount
(indexable) Count of indexable LEDs on the lamp
Definition: lamp_type.hpp:353
Define the the global simulation state.
Definition: simulator_state.h:21