dsys2

view src/dsys_impl.h @ 11:65da828bc218

forgot the dependecy to lib_a for the install target
author John Tsiombikas <nuclear@siggraph.org>
date Sun, 04 Sep 2011 18:21:26 +0300
parents 95f010f7eadc
children 6bab2c0b0e4b
line source
1 #ifndef DSYS_IMPL_H_
2 #define DSYS_IMPL_H_
4 #include "dsys2.h"
6 struct dsys_demo {
7 demotime_t tm, src_tm, start_tm, stop_tm, duration;
8 demotime_t stoppage_tm;
10 struct dsys_event *evlist;
11 int num_ev;
13 struct dsys_event *nextev, *active;
15 int running;
16 };
18 struct callback {
19 void (*func)(struct dsys_event*, void*);
20 void *cls;
22 struct callback *next;
23 };
26 struct dsys_event {
27 enum dsys_evtype type;
29 char *name;
30 demotime_t t0, t1;
31 float val;
33 float (*eval)(struct dsys_event*, demotime_t);
35 struct callback *cblist;
37 struct dsys_event *next, *prev;
38 };
40 #endif /* DSYS_IMPL_H_ */