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
,
39 .velocity_scale
= 0.001f
,
43 static void particle_alloc( particle_system
*sys
, u32 max
);
44 static void particle_system_update( particle_system
*sys
, f32 dt
);
45 static void particle_system_debug( particle_system
*sys
);
46 static void particle_system_prerender( particle_system
*sys
);
47 static void particle_system_render( particle_system
*sys
, camera
*cam
);
49 static void particle_spawn( particle_system
*sys
,
50 v3f co
, v3f v
, f32 lifetime
, u32 colour
);
51 static void particle_spawn_cone( particle_system
*sys
,
52 v3f co
, v3f dir
, f32 angle
, f32 speed
,
53 f32 lifetime
, u32 colour
);
55 #include "shaders/particle.h"
57 #endif /* PARTICLE_H */