libpsys

diff src/rndval.h @ 5:613d2bf3ea1f

almost finished with the reorg
author John Tsiombikas <nuclear@mutantstargoat.com>
date Tue, 27 Sep 2011 07:42:32 +0300
parents 133094e2f5a5
children 3c0a306c5f01
line diff
     1.1 --- a/src/rndval.h	Mon Sep 26 18:25:18 2011 +0300
     1.2 +++ b/src/rndval.h	Tue Sep 27 07:42:32 2011 +0300
     1.3 @@ -2,8 +2,7 @@
     1.4  #define RNDVAL_H_
     1.5  
     1.6  #include <vmath.h>
     1.7 -#include <anim/anim.h>
     1.8 -#include "anm_track3.h"
     1.9 +#include "pstrack.h"
    1.10  
    1.11  struct psys_rnd {
    1.12  	float value, range;
    1.13 @@ -14,19 +13,14 @@
    1.14  };
    1.15  
    1.16  struct psys_anm_rnd {
    1.17 -	struct anm_track value, range;
    1.18 -	/* current cache */
    1.19 -	anm_time_t cur_tm;
    1.20 -	struct psys_rnd cur;
    1.21 +	struct psys_track value, range;
    1.22  };
    1.23  
    1.24  struct psys_anm_rnd3 {
    1.25 -	struct anm_track3 value, range;
    1.26 -	/* current cache */
    1.27 -	anm_time_t cur_tm;
    1.28 -	struct psys_rnd3 cur;
    1.29 +	struct psys_track3 value, range;
    1.30  };
    1.31  
    1.32 +#define PSYS_EVAL_CUR	ANM_TIME_INVAL
    1.33  
    1.34  int psys_init_anm_rnd(struct psys_anm_rnd *v);
    1.35  void psys_destroy_anm_rnd(struct psys_anm_rnd *v);