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 center;
15  Rec2Df rec2d;
16  LG_Texture *tex;
17  vec3_t velocity;
18  LG_Color_u color;
19  uint32_t time;
20  uint32_t full_time;
21 } LG_Particle;
22 
24 
25 #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 center, Rec2Df rec2d, LG_Texture *tex, vec3_t velocity, LG_Color_u color, uint32_t time, uint32_t full_time)
Definition: lg_part_sys.c:26
LG_Texture
Definition: lg_textures.h:45