libpsys

diff src/pattr.h @ 9:9c24273f211b

first test is done
author John Tsiombikas <nuclear@mutantstargoat.com>
date Wed, 28 Sep 2011 03:42:01 +0300
parents d774738f50f6
children 23d4c50616ff
line diff
     1.1 --- a/src/pattr.h	Tue Sep 27 21:47:27 2011 +0300
     1.2 +++ b/src/pattr.h	Wed Sep 28 03:42:01 2011 +0300
     1.3 @@ -4,6 +4,13 @@
     1.4  #include "pstrack.h"
     1.5  #include "rndval.h"
     1.6  
     1.7 +/* the particle attributes vary from 0 to 1 during its lifetime */
     1.8 +struct psys_particle_attributes {
     1.9 +	struct psys_track3 color;
    1.10 +	struct psys_track alpha;
    1.11 +	struct psys_track size;
    1.12 +};
    1.13 +
    1.14  struct psys_attributes {
    1.15  	unsigned int tex;	/* OpenGL texture to use for the billboard */
    1.16  
    1.17 @@ -14,8 +21,10 @@
    1.18  	struct psys_anm_rnd3 dir;		/* particle shoot direction */
    1.19  
    1.20  	struct psys_track3 grav;		/* external force (usually gravity) */
    1.21 +	float drag;	/* I don't think this needs to animate */
    1.22  
    1.23 -	float drag;	/* I don't think this needs to animate */
    1.24 +	/* particle attributes */
    1.25 +	struct psys_particle_attributes part_attr;
    1.26  
    1.27  	/* limits */
    1.28  	int max_particles;