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 /* global demo state */
29 int dsys_running; /* run/stop state */
30 int dsys_eof; /* end of demo flag, seek back to reset */
31 long dsys_time; /* demo time in milliseconds */
33 #define MAX_DSYS_SCREENS 64
34 struct demoscreen *dsys_screens[MAX_DSYS_SCREENS];
36 struct demoscreen *dsys_act[MAX_DSYS_SCREENS];
40 int dsys_init(const char *fname);
41 void dsys_destroy(void);
43 void dsys_update(void);
48 void dsys_seek_abs(long tm);
49 void dsys_seek_rel(long dt);
50 void dsys_seek_norm(float t);
52 /* overrides the demo sequence, and runs a single screen */
53 struct demoscreen *dsys_find_screen(const char *name);
54 void dsys_run_screen(struct demoscreen *scr);
56 int dsys_add_screen(struct demoscreen *scr);
58 #endif /* DEMOSYS_H_ */