libpsys

annotate 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
rev   line source
nuclear@3 1 #ifndef RNDVAL_H_
nuclear@3 2 #define RNDVAL_H_
nuclear@3 3
nuclear@7 4 #include <vmath/vmath.h>
nuclear@5 5 #include "pstrack.h"
nuclear@3 6
nuclear@3 7 struct psys_rnd {
nuclear@3 8 float value, range;
nuclear@3 9 };
nuclear@3 10
nuclear@3 11 struct psys_rnd3 {
nuclear@3 12 vec3_t value, range;
nuclear@3 13 };
nuclear@3 14
nuclear@3 15 struct psys_anm_rnd {
nuclear@5 16 struct psys_track value, range;
nuclear@3 17 };
nuclear@3 18
nuclear@3 19 struct psys_anm_rnd3 {
nuclear@5 20 struct psys_track3 value, range;
nuclear@3 21 };
nuclear@3 22
nuclear@5 23 #define PSYS_EVAL_CUR ANM_TIME_INVAL
nuclear@3 24
nuclear@3 25 int psys_init_anm_rnd(struct psys_anm_rnd *v);
nuclear@3 26 void psys_destroy_anm_rnd(struct psys_anm_rnd *v);
nuclear@3 27 int psys_init_anm_rnd3(struct psys_anm_rnd3 *v);
nuclear@3 28 void psys_destroy_anm_rnd3(struct psys_anm_rnd3 *v);
nuclear@3 29
nuclear@3 30 float psys_eval_rnd(struct psys_rnd *r);
nuclear@3 31 vec3_t psys_eval_rnd3(struct psys_rnd3 *r);
nuclear@3 32
nuclear@3 33 float psys_eval_anm_rnd(struct psys_anm_rnd *r, anm_time_t tm);
nuclear@3 34 vec3_t psys_eval_anm_rnd3(struct psys_anm_rnd3 *r, anm_time_t tm);
nuclear@3 35
nuclear@3 36
nuclear@3 37 #endif /* RNDVAL_H_ */