pixled-lib
1.0
|
#include <runtime.h>
Public Member Functions | |
Runtime (Mapping &mapping, Output &output, Animation &animation) | |
void | prev () |
void | next () |
time | current_time () const |
The purpose of the Runtime is to aggregate a Mapping and an Animation to perform the proper Output::write() operations.
Since the Output interface is generic, the Runtime can be used on any device.
However, there is no notion of fps
in this class, since this concept is highly dependent on the device (and so on the Output) on which pixled is used.
Runtime constructor.
mapping | led mapping: specifies the leds currently in the system |
output | led output: writes animation colors to each led |
animation | animation to run |
void pixled::Runtime::prev | ( | ) |
Steps the Runtime backward, builds the correspondind frame using the provided animation
, and writes each color to leds defined in mapping
using the output
.
void pixled::Runtime::next | ( | ) |
Steps the Runtime forward, builds the correspondind frame using the provided animation
, and writes each color to leds defined in mapping
using the output
.
time pixled::Runtime::current_time | ( | ) | const |
Returns the current time step of the Runtime.