dsys2

view src/dsys_impl.h @ 4:95f010f7eadc

*burp*
author John Tsiombikas <nuclear@siggraph.org>
date Thu, 01 Sep 2011 07:55:22 +0300
parents 1705e550bd91
children 80f86f0f67ec
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 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 char *name;
28 demotime_t t0, t1;
29 float val;
31 float (*eval_func)(struct dsys_event*, demotime_t);
33 struct callback *cblist;
35 struct dsys_event *next, *prev;
36 };
38 #endif /* DSYS_IMPL_H_ */