dungeon_crawler

annotate prototype/psys/pstrack.h @ 75:b05ab29cd17d

color grading done
author John Tsiombikas <nuclear@member.fsf.org>
date Mon, 22 Oct 2012 03:55:00 +0300
parents
children
rev   line source
nuclear@67 1 #ifndef PSTRACK_H_
nuclear@67 2 #define PSTRACK_H_
nuclear@67 3
nuclear@67 4 #include <vmath/vmath.h>
nuclear@67 5 #include <anim/anim.h>
nuclear@67 6
nuclear@67 7 struct psys_track {
nuclear@67 8 struct anm_track trk;
nuclear@67 9
nuclear@67 10 anm_time_t cache_tm;
nuclear@67 11 float cache_val;
nuclear@67 12 };
nuclear@67 13
nuclear@67 14 struct psys_track3 {
nuclear@67 15 struct anm_track x, y, z;
nuclear@67 16
nuclear@67 17 anm_time_t cache_tm;
nuclear@67 18 vec3_t cache_vec;
nuclear@67 19 };
nuclear@67 20
nuclear@67 21 int psys_init_track(struct psys_track *track);
nuclear@67 22 void psys_destroy_track(struct psys_track *track);
nuclear@67 23
nuclear@67 24 int psys_init_track3(struct psys_track3 *track);
nuclear@67 25 void psys_destroy_track3(struct psys_track3 *track);
nuclear@67 26
nuclear@67 27 void psys_eval_track(struct psys_track *track, anm_time_t tm);
nuclear@67 28 void psys_set_value(struct psys_track *track, anm_time_t tm, float v);
nuclear@67 29 float psys_get_value(struct psys_track *track, anm_time_t tm);
nuclear@67 30 float psys_get_cur_value(struct psys_track *track);
nuclear@67 31
nuclear@67 32 void psys_eval_track3(struct psys_track3 *track, anm_time_t tm);
nuclear@67 33 void psys_set_value3(struct psys_track3 *track, anm_time_t tm, vec3_t v);
nuclear@67 34 vec3_t psys_get_value3(struct psys_track3 *track, anm_time_t tm);
nuclear@67 35 vec3_t psys_get_cur_value3(struct psys_track3 *track);
nuclear@67 36
nuclear@67 37 #endif /* PSTRACK_H_ */