|
Lightgraph
C++17 light-graph engine API reference
|
Engine facade with internal method-level synchronization. More...
#include <engine.hpp>
Public Member Functions | |
| Engine (const EngineConfig &config=EngineConfig{}) | |
| Construct an engine instance from configuration. | |
| ~Engine () | |
| Engine (const Engine &)=delete | |
| Engine & | operator= (const Engine &)=delete |
| Engine (Engine &&) noexcept | |
| Engine & | operator= (Engine &&) noexcept |
| Result< int8_t > | emit (const EmitCommand &command) |
| Emit a new light list using a value command. | |
| void | update (uint64_t millis) |
| Advance runtime to an absolute timestamp (milliseconds). | |
| void | tick (uint64_t delta_millis) |
| Advance runtime by a delta in milliseconds. | |
| void | stopAll () |
| Stop all active lights/lists. | |
| bool | isOn () const |
| Return whether runtime output is enabled. | |
| void | setOn (bool on) |
| Enable or disable runtime output. | |
| bool | autoEmitEnabled () const |
| Return auto-emit state. | |
| void | setAutoEmitEnabled (bool enabled) |
| Enable or disable auto-emit. | |
| uint16_t | pixelCount () const |
| Return total pixel count for the active object. | |
| Result< Color > | pixel (uint16_t index, uint8_t max_brightness=255) const |
| Fetch a rendered pixel color by index. | |
Engine facade with internal method-level synchronization.
Engine wraps the legacy topology/runtime implementation behind value-based commands and typed status/error returns. Calls on the same instance are serialized, but process-global runtime state is still shared across instances.
Definition at line 23 of file engine.hpp.
|
explicit |
Construct an engine instance from configuration.
| lightgraph::Engine::~Engine | ( | ) |
|
noexcept |
| bool lightgraph::Engine::autoEmitEnabled | ( | ) | const |
Return auto-emit state.
| Result< int8_t > lightgraph::Engine::emit | ( | const EmitCommand & | command | ) |
Emit a new light list using a value command.
| bool lightgraph::Engine::isOn | ( | ) | const |
Return whether runtime output is enabled.
Fetch a rendered pixel color by index.
| uint16_t lightgraph::Engine::pixelCount | ( | ) | const |
Return total pixel count for the active object.
| void lightgraph::Engine::stopAll | ( | ) |
Stop all active lights/lists.
Advance runtime to an absolute timestamp (milliseconds).