4 #include "anim/track.h"
10 void (*destroy)(void);
11 void (*reshape)(int x, int y);
16 void (*update)(long tmsec);
19 void (*keyboard)(int key, int pressed);
20 void (*mouse)(int bn, int pressed, int x, int y);
21 void (*motion)(int x, int y);
23 struct anm_track track;
28 #define MAX_DSYS_SCREENS 64
30 int running; /* run/stop state */
31 int eof; /* end of demo flag, seek back to reset */
34 struct demoscreen *screens[MAX_DSYS_SCREENS];
36 struct demoscreen *act[MAX_DSYS_SCREENS];
40 struct anm_track *track;
41 float *value; /* values for each track, stored on update */
45 struct demosystem dsys;
48 int dsys_init(const char *fname);
49 void dsys_destroy(void);
51 void dsys_update(void);
56 void dsys_seek_abs(long tm);
57 void dsys_seek_rel(long dt);
58 void dsys_seek_norm(float t);
60 /* overrides the demo sequence, and runs a single screen */
61 struct demoscreen *dsys_find_screen(const char *name);
62 void dsys_run_screen(struct demoscreen *scr);
64 int dsys_add_screen(struct demoscreen *scr);
66 /* demo event tracks */
67 int dsys_add_track(const char *name);
68 int dsys_find_track(const char *name);
69 float dsys_value(const char *name);
71 #endif /* DEMOSYS_H_ */