pixled-lib  1.0
runtime.h
1 #ifndef PIXLED_RUNTIME_H
2 #define PIXLED_RUNTIME_H
3 
4 #include "output.h"
5 #include "function.h"
6 #include "mapping/mapping.h"
7 
8 namespace pixled {
16 
28  class Runtime {
29  private:
30  unsigned long _time = 0;
31  Mapping& mapping;
32  Output& output;
33  Animation& animation;
34 
40  void frame(time t);
41 
42 
43  public:
52  Runtime(Mapping& mapping, Output& output, Animation& animation)
53  : mapping(mapping), output(output), animation(animation) {}
54 
60  void prev();
66  void next();
67 
73  time current_time() const;
74  };
75 }
76 #endif
Definition: output.h:22
Definition: runtime.h:28
Runtime(Mapping &mapping, Output &output, Animation &animation)
Definition: runtime.h:52
time current_time() const
Definition: runtime.cpp:15
void next()
Definition: runtime.cpp:12
void prev()
Definition: runtime.cpp:9
Definition: animation.cpp:3
unsigned long time
Definition: time.h:10
base::Function< color > Animation
Definition: runtime.h:15
Definition: mapping.h:70