LibGame  v0.4.0
The LG Game Engine - Copyright (C) 2024-2025 ETMSoftware
lg_part_sys.h
1 /*
2  * LibGame - Copyright (C) Emmanuel Thomas-Maurin 2011-2025
3  * All rights reserved
4  */
5 
6 #ifndef LG_PART_SYS_H
7 #define LG_PART_SYS_H
8 
9 /* Particles system */
10 
11 /* Speed is a scalar whereas velocity is a vec3 */
12 
13 typedef struct {
14  vec3_t pos;
15  Rec2Df rec2d;
16  vec3_t velocity;
17  LG_Color_u color;
18  uint32_t time;
19  uint32_t full_time;
20 } LG_Particle;
21 
22 LG_Particle lg_particle(vec3_t, Rec2Df, vec3_t, LG_Color_u, uint32_t, uint32_t);
23 
24 #endif /* LG_PART_SYS_H */
Rec2Df
Definition: lg_gr_func.h:56
vec3_t
Definition: math_3d.h:123
LG_Particle
Definition: lg_part_sys.h:13
LG_Color_u
Definition: lg_vertex.h:111
lg_particle
LG_Particle lg_particle(vec3_t pos, Rec2Df rec2d, vec3_t velocity, LG_Color_u color, uint32_t time, uint32_t full_time)
Definition: lg_part_sys.c:25