dsys2

view src/dsys_impl.h @ 2:1705e550bd91

foo
author John Tsiombikas <nuclear@siggraph.org>
date Wed, 31 Aug 2011 05:08:54 +0300
parents 34d90cd9ef9b
children 95f010f7eadc
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 *ev;
11 int num_ev;
13 int running;
14 };
16 struct callback {
17 void (*func)(struct dsys_event*, void*);
18 void *cls;
20 struct callback *next;
21 };
24 struct dsys_event {
25 enum dsys_evtype type;
27 demotime_t t0, t1;
28 float val;
30 float (*eval_func)(struct dsys_event*);
32 struct callback *cblist;
34 struct dsys_event *next, *prev;
35 };
37 #endif /* DSYS_IMPL_H_ */