libpsys
view src/rndval.h @ 7:3c0a306c5f01
revamped the makefile a bit and changed all <vmath.h> to <vmath/vmath.h> to avoid relying on pkg-config
author | John Tsiombikas <nuclear@mutantstargoat.com> |
---|---|
date | Tue, 27 Sep 2011 07:52:01 +0300 |
parents | 613d2bf3ea1f |
children | a10f19674147 |
line source
1 #ifndef RNDVAL_H_
2 #define RNDVAL_H_
4 #include <vmath/vmath.h>
5 #include "pstrack.h"
7 struct psys_rnd {
8 float value, range;
9 };
11 struct psys_rnd3 {
12 vec3_t value, range;
13 };
15 struct psys_anm_rnd {
16 struct psys_track value, range;
17 };
19 struct psys_anm_rnd3 {
20 struct psys_track3 value, range;
21 };
23 #define PSYS_EVAL_CUR ANM_TIME_INVAL
25 int psys_init_anm_rnd(struct psys_anm_rnd *v);
26 void psys_destroy_anm_rnd(struct psys_anm_rnd *v);
27 int psys_init_anm_rnd3(struct psys_anm_rnd3 *v);
28 void psys_destroy_anm_rnd3(struct psys_anm_rnd3 *v);
30 float psys_eval_rnd(struct psys_rnd *r);
31 vec3_t psys_eval_rnd3(struct psys_rnd3 *r);
33 float psys_eval_anm_rnd(struct psys_anm_rnd *r, anm_time_t tm);
34 vec3_t psys_eval_anm_rnd3(struct psys_anm_rnd3 *r, anm_time_t tm);
37 #endif /* RNDVAL_H_ */