libpsys
annotate src/rndval.h @ 3:133094e2f5a5
reorganizing
author | John Tsiombikas <nuclear@mutantstargoat.com> |
---|---|
date | Mon, 26 Sep 2011 18:20:11 +0300 |
parents | |
children | 613d2bf3ea1f |
rev | line source |
---|---|
nuclear@3 | 1 #ifndef RNDVAL_H_ |
nuclear@3 | 2 #define RNDVAL_H_ |
nuclear@3 | 3 |
nuclear@3 | 4 #include <vmath.h> |
nuclear@3 | 5 #include <anim/anim.h> |
nuclear@3 | 6 #include "anm_track3.h" |
nuclear@3 | 7 |
nuclear@3 | 8 struct psys_rnd { |
nuclear@3 | 9 float value, range; |
nuclear@3 | 10 }; |
nuclear@3 | 11 |
nuclear@3 | 12 struct psys_rnd3 { |
nuclear@3 | 13 vec3_t value, range; |
nuclear@3 | 14 }; |
nuclear@3 | 15 |
nuclear@3 | 16 struct psys_anm_rnd { |
nuclear@3 | 17 struct anm_track value, range; |
nuclear@3 | 18 /* current cache */ |
nuclear@3 | 19 anm_time_t cur_tm; |
nuclear@3 | 20 struct psys_rnd cur; |
nuclear@3 | 21 }; |
nuclear@3 | 22 |
nuclear@3 | 23 struct psys_anm_rnd3 { |
nuclear@3 | 24 struct anm_track3 value, range; |
nuclear@3 | 25 /* current cache */ |
nuclear@3 | 26 anm_time_t cur_tm; |
nuclear@3 | 27 struct psys_rnd3 cur; |
nuclear@3 | 28 }; |
nuclear@3 | 29 |
nuclear@3 | 30 |
nuclear@3 | 31 int psys_init_anm_rnd(struct psys_anm_rnd *v); |
nuclear@3 | 32 void psys_destroy_anm_rnd(struct psys_anm_rnd *v); |
nuclear@3 | 33 int psys_init_anm_rnd3(struct psys_anm_rnd3 *v); |
nuclear@3 | 34 void psys_destroy_anm_rnd3(struct psys_anm_rnd3 *v); |
nuclear@3 | 35 |
nuclear@3 | 36 float psys_eval_rnd(struct psys_rnd *r); |
nuclear@3 | 37 vec3_t psys_eval_rnd3(struct psys_rnd3 *r); |
nuclear@3 | 38 |
nuclear@3 | 39 float psys_eval_anm_rnd(struct psys_anm_rnd *r, anm_time_t tm); |
nuclear@3 | 40 vec3_t psys_eval_anm_rnd3(struct psys_anm_rnd3 *r, anm_time_t tm); |
nuclear@3 | 41 |
nuclear@3 | 42 |
nuclear@3 | 43 #endif /* RNDVAL_H_ */ |