6 typedef struct particle_system particle_system
;
7 typedef struct particle particle
;
8 typedef struct particle_vert particle_vert
;
10 struct particle_system
{
19 struct particle_vert
{
30 f32 scale
, velocity_scale
, width
;
32 static particles_grind
= {
34 .velocity_scale
= 0.001f
,
38 static void particle_alloc( particle_system
*sys
, u32 max
);
39 static void particle_system_update( particle_system
*sys
, f32 dt
);
40 static void particle_system_debug( particle_system
*sys
);
41 static void particle_system_prerender( particle_system
*sys
);
42 static void particle_system_render( particle_system
*sys
, camera
*cam
);
44 static void particle_spawn( particle_system
*sys
,
45 v3f co
, v3f v
, f32 lifetime
, u32 colour
);
46 static void particle_spawn_cone( particle_system
*sys
,
47 v3f co
, v3f dir
, f32 angle
, f32 speed
,
48 f32 lifetime
, u32 colour
);
50 #include "shaders/particle.h"
52 #endif /* PARTICLE_H */