libpsys

diff src/psys.h @ 2:6e5342a2529a

more stuff done
author John Tsiombikas <nuclear@mutantstargoat.com>
date Sun, 25 Sep 2011 04:26:51 +0300
parents 874a942853ad
children 133094e2f5a5
line diff
     1.1 --- a/src/psys.h	Sat Sep 24 20:44:42 2011 +0300
     1.2 +++ b/src/psys.h	Sun Sep 25 04:26:51 2011 +0300
     1.3 @@ -1,14 +1,6 @@
     1.4  #ifndef LIBPSYS_H_
     1.5  #define LIBPSYS_H_
     1.6  
     1.7 -/* emitter properties:
     1.8 - * - p/r/s (anim)
     1.9 - * - spawn rate (anim)
    1.10 - * - direction (anim)
    1.11 - *
    1.12 - * - collision planes
    1.13 - */
    1.14 -
    1.15  struct psys_emitter;
    1.16  struct psys_particle;
    1.17  
    1.18 @@ -27,6 +19,7 @@
    1.19  void psys_destroy(struct psys_emitter *em);
    1.20  
    1.21  /* set properties */
    1.22 +void psys_set_texture(struct psys_emitter *em, unsigned int tex);
    1.23  
    1.24  void psys_set_pos(struct psys_emitter *em, vec3_t pos, float tm);
    1.25  void psys_set_rot(struct psys_emitter *em, quat_t rot, float tm);
    1.26 @@ -49,6 +42,7 @@
    1.27  
    1.28  
    1.29  /* query emitter state */
    1.30 +unsigned int psys_get_texture(struct psys_emitter *em);
    1.31  vec3_t psys_get_pos(struct psys_emitter *em);
    1.32  quat_t psys_get_rot(struct psys_emitter *em);
    1.33  float psys_get_rate(struct psys_emitter *em);