dungeon_crawler
diff prototype/psys/rndval.h @ 67:2560a7ab0243
internalized libanim, libimago2, and libpsys
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Sun, 07 Oct 2012 02:04:00 +0300 |
parents | |
children |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/prototype/psys/rndval.h Sun Oct 07 02:04:00 2012 +0300 1.3 @@ -0,0 +1,43 @@ 1.4 +#ifndef RNDVAL_H_ 1.5 +#define RNDVAL_H_ 1.6 + 1.7 +#include <vmath/vmath.h> 1.8 +#include "pstrack.h" 1.9 + 1.10 +struct psys_rnd { 1.11 + float value, range; 1.12 +}; 1.13 + 1.14 +struct psys_rnd3 { 1.15 + vec3_t value, range; 1.16 +}; 1.17 + 1.18 +struct psys_anm_rnd { 1.19 + struct psys_track value, range; 1.20 +}; 1.21 + 1.22 +struct psys_anm_rnd3 { 1.23 + struct psys_track3 value, range; 1.24 +}; 1.25 + 1.26 +#define PSYS_EVAL_CUR ANM_TIME_INVAL 1.27 + 1.28 +int psys_init_anm_rnd(struct psys_anm_rnd *v); 1.29 +void psys_destroy_anm_rnd(struct psys_anm_rnd *v); 1.30 +int psys_init_anm_rnd3(struct psys_anm_rnd3 *v); 1.31 +void psys_destroy_anm_rnd3(struct psys_anm_rnd3 *v); 1.32 + 1.33 +void psys_set_rnd(struct psys_rnd *r, float val, float range); 1.34 +void psys_set_rnd3(struct psys_rnd3 *r, vec3_t val, vec3_t range); 1.35 + 1.36 +void psys_set_anm_rnd(struct psys_anm_rnd *r, anm_time_t tm, float val, float range); 1.37 +void psys_set_anm_rnd3(struct psys_anm_rnd3 *r, anm_time_t tm, vec3_t val, vec3_t range); 1.38 + 1.39 +float psys_eval_rnd(struct psys_rnd *r); 1.40 +vec3_t psys_eval_rnd3(struct psys_rnd3 *r); 1.41 + 1.42 +float psys_eval_anm_rnd(struct psys_anm_rnd *r, anm_time_t tm); 1.43 +vec3_t psys_eval_anm_rnd3(struct psys_anm_rnd3 *r, anm_time_t tm); 1.44 + 1.45 + 1.46 +#endif /* RNDVAL_H_ */