libpsys

view src/rndval.h @ 3:133094e2f5a5

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