annotate src/pstrack.h @ 14:4f36bbbcc82f
really started writting the parser... god I hate ad-hoc parsing...
author |
John Tsiombikas <nuclear@mutantstargoat.com> |
date |
Mon, 10 Sep 2012 05:58:03 +0300 |
parents |
613d2bf3ea1f |
children |
|
rev |
line source |
nuclear@5
|
1 #ifndef PSTRACK_H_
|
nuclear@5
|
2 #define PSTRACK_H_
|
nuclear@5
|
3
|
nuclear@7
|
4 #include <vmath/vmath.h>
|
nuclear@5
|
5 #include <anim/anim.h>
|
nuclear@5
|
6
|
nuclear@5
|
7 struct psys_track {
|
nuclear@5
|
8 struct anm_track trk;
|
nuclear@5
|
9
|
nuclear@5
|
10 anm_time_t cache_tm;
|
nuclear@5
|
11 float cache_val;
|
nuclear@5
|
12 };
|
nuclear@5
|
13
|
nuclear@5
|
14 struct psys_track3 {
|
nuclear@5
|
15 struct anm_track x, y, z;
|
nuclear@5
|
16
|
nuclear@5
|
17 anm_time_t cache_tm;
|
nuclear@5
|
18 vec3_t cache_vec;
|
nuclear@5
|
19 };
|
nuclear@5
|
20
|
nuclear@5
|
21 int psys_init_track(struct psys_track *track);
|
nuclear@5
|
22 void psys_destroy_track(struct psys_track *track);
|
nuclear@5
|
23
|
nuclear@5
|
24 int psys_init_track3(struct psys_track3 *track);
|
nuclear@5
|
25 void psys_destroy_track3(struct psys_track3 *track);
|
nuclear@5
|
26
|
nuclear@5
|
27 void psys_eval_track(struct psys_track *track, anm_time_t tm);
|
nuclear@5
|
28 void psys_set_value(struct psys_track *track, anm_time_t tm, float v);
|
nuclear@5
|
29 float psys_get_value(struct psys_track *track, anm_time_t tm);
|
nuclear@5
|
30 float psys_get_cur_value(struct psys_track *track);
|
nuclear@5
|
31
|
nuclear@5
|
32 void psys_eval_track3(struct psys_track3 *track, anm_time_t tm);
|
nuclear@5
|
33 void psys_set_value3(struct psys_track3 *track, anm_time_t tm, vec3_t v);
|
nuclear@5
|
34 vec3_t psys_get_value3(struct psys_track3 *track, anm_time_t tm);
|
nuclear@5
|
35 vec3_t psys_get_cur_value3(struct psys_track3 *track);
|
nuclear@5
|
36
|
nuclear@5
|
37 #endif /* PSTRACK_H_ */
|