projects
/
andemo
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
screen-relative events
[andemo]
/
src
/
demosys.h
diff --git
a/src/demosys.h
b/src/demosys.h
index
e2bdb8a
..
11ec714
100644
(file)
--- a/
src/demosys.h
+++ b/
src/demosys.h
@@
-21,10
+21,18
@@
struct demoscreen {
void (*motion)(int x, int y);
struct anm_track track;
void (*motion)(int x, int y);
struct anm_track track;
- int active, prio;
+ long start_time;
+ int prio;
float vis;
};
float vis;
};
+struct demoevent {
+ char *name;
+ struct anm_track track;
+ float value;
+ struct demoscreen *scr;
+};
+
#define MAX_DSYS_SCREENS 64
struct demosystem {
int running; /* run/stop state */
#define MAX_DSYS_SCREENS 64
struct demosystem {
int running; /* run/stop state */
@@
-39,9
+47,8
@@
struct demosystem {
struct demoscreen *scr_override;
void *trackmap;
struct demoscreen *scr_override;
void *trackmap;
- struct anm_track *track;
- float *value; /* values for each track, stored on update */
- int num_tracks;
+ struct demoevent *ev;
+ int num_ev;
};
struct demosystem dsys;
};
struct demosystem dsys;
@@
-66,8
+73,8
@@
void dsys_run_screen(struct demoscreen *scr);
int dsys_add_screen(struct demoscreen *scr);
/* demo event tracks */
int dsys_add_screen(struct demoscreen *scr);
/* demo event tracks */
-int dsys_add_track(const char *name);
-int dsys_find_track(const char *name);
+int dsys_add_event(const char *name);
+int dsys_find_event(const char *name);
float dsys_value(const char *name);
#endif /* DEMOSYS_H_ */
float dsys_value(const char *name);
#endif /* DEMOSYS_H_ */