libpsys

annotate src/rndval.h @ 10:0f83e882fd04

install target
author John Tsiombikas <nuclear@member.fsf.org>
date Wed, 29 Aug 2012 03:16:58 +0300
parents 3c0a306c5f01
children
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@8 30 void psys_set_rnd(struct psys_rnd *r, float val, float range);
nuclear@8 31 void psys_set_rnd3(struct psys_rnd3 *r, vec3_t val, vec3_t range);
nuclear@8 32
nuclear@8 33 void psys_set_anm_rnd(struct psys_anm_rnd *r, anm_time_t tm, float val, float range);
nuclear@8 34 void psys_set_anm_rnd3(struct psys_anm_rnd3 *r, anm_time_t tm, vec3_t val, vec3_t range);
nuclear@8 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_ */