dungeon_crawler

annotate prototype/psys/rndval.h @ 72:a27528035e20

- re-organized the renderer classes a bit wrt final render-target - implemented identity color-grading palette for now - broke particle systems.... - removed multipass renderer
author John Tsiombikas <nuclear@member.fsf.org>
date Fri, 19 Oct 2012 02:45:57 +0300
parents
children
rev   line source
nuclear@67 1 #ifndef RNDVAL_H_
nuclear@67 2 #define RNDVAL_H_
nuclear@67 3
nuclear@67 4 #include <vmath/vmath.h>
nuclear@67 5 #include "pstrack.h"
nuclear@67 6
nuclear@67 7 struct psys_rnd {
nuclear@67 8 float value, range;
nuclear@67 9 };
nuclear@67 10
nuclear@67 11 struct psys_rnd3 {
nuclear@67 12 vec3_t value, range;
nuclear@67 13 };
nuclear@67 14
nuclear@67 15 struct psys_anm_rnd {
nuclear@67 16 struct psys_track value, range;
nuclear@67 17 };
nuclear@67 18
nuclear@67 19 struct psys_anm_rnd3 {
nuclear@67 20 struct psys_track3 value, range;
nuclear@67 21 };
nuclear@67 22
nuclear@67 23 #define PSYS_EVAL_CUR ANM_TIME_INVAL
nuclear@67 24
nuclear@67 25 int psys_init_anm_rnd(struct psys_anm_rnd *v);
nuclear@67 26 void psys_destroy_anm_rnd(struct psys_anm_rnd *v);
nuclear@67 27 int psys_init_anm_rnd3(struct psys_anm_rnd3 *v);
nuclear@67 28 void psys_destroy_anm_rnd3(struct psys_anm_rnd3 *v);
nuclear@67 29
nuclear@67 30 void psys_set_rnd(struct psys_rnd *r, float val, float range);
nuclear@67 31 void psys_set_rnd3(struct psys_rnd3 *r, vec3_t val, vec3_t range);
nuclear@67 32
nuclear@67 33 void psys_set_anm_rnd(struct psys_anm_rnd *r, anm_time_t tm, float val, float range);
nuclear@67 34 void psys_set_anm_rnd3(struct psys_anm_rnd3 *r, anm_time_t tm, vec3_t val, vec3_t range);
nuclear@67 35
nuclear@67 36 float psys_eval_rnd(struct psys_rnd *r);
nuclear@67 37 vec3_t psys_eval_rnd3(struct psys_rnd3 *r);
nuclear@67 38
nuclear@67 39 float psys_eval_anm_rnd(struct psys_anm_rnd *r, anm_time_t tm);
nuclear@67 40 vec3_t psys_eval_anm_rnd3(struct psys_anm_rnd3 *r, anm_time_t tm);
nuclear@67 41
nuclear@67 42
nuclear@67 43 #endif /* RNDVAL_H_ */