4 typedef struct particle_system particle_system
;
5 typedef struct particle particle
;
6 typedef struct particle_vert particle_vert
;
8 struct particle_system
{
17 struct particle_vert
{
28 f32 scale
, velocity_scale
, width
;
30 extern particles_grind
, particles_env
;
32 void particle_alloc( particle_system
*sys
, u32 max
);
33 void particle_system_update( particle_system
*sys
, f32 dt
);
34 void particle_system_debug( particle_system
*sys
);
35 void particle_system_prerender( particle_system
*sys
);
36 void particle_system_render( particle_system
*sys
, vg_camera
*cam
);
38 void particle_spawn( particle_system
*sys
,
39 v3f co
, v3f v
, f32 lifetime
, u32 colour
);
40 void particle_spawn_cone( particle_system
*sys
,
41 v3f co
, v3f dir
, f32 angle
, f32 speed
,
42 f32 lifetime
, u32 colour
);