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;
31 struct anm_track track;
33 struct demoscreen *scr;
36 #define MAX_DSYS_SCREENS 64
38 int running; /* run/stop state */
39 int eof; /* end of demo flag, seek back to reset */
42 struct demoscreen *screens[MAX_DSYS_SCREENS];
44 struct demoscreen *act[MAX_DSYS_SCREENS];
47 struct demoscreen *scr_override;
54 struct demosystem dsys;
57 int dsys_init(const char *fname);
58 void dsys_destroy(void);
60 void dsys_update(void);
65 void dsys_seek_abs(long tm);
66 void dsys_seek_rel(long dt);
67 void dsys_seek_norm(float t);
69 /* overrides the demo sequence, and runs a single screen */
70 struct demoscreen *dsys_find_screen(const char *name);
71 void dsys_run_screen(struct demoscreen *scr);
73 int dsys_add_screen(struct demoscreen *scr);
75 /* demo event tracks */
76 int dsys_add_event(const char *name);
77 int dsys_find_event(const char *name);
78 float dsys_value(const char *name);
80 #endif /* DEMOSYS_H_ */