![]() |
Nilorea Library
C utilities for networking, threading, graphics
|
Particles management. More...
#include <allegro5/allegro.h>#include <allegro5/allegro_audio.h>#include <allegro5/allegro_acodec.h>#include <allegro5/allegro_font.h>#include <allegro5/allegro_image.h>#include <allegro5/allegro_primitives.h>#include "n_common.h"#include "n_log.h"#include "n_list.h"#include "n_3d.h"#include "n_time.h"
Include dependency graph for n_particles.h:
This graph shows which files directly or indirectly include this file:Go to the source code of this file.
Data Structures | |
| struct | PARTICLE |
| Structure of a single particle. More... | |
| struct | PARTICLE_SYSTEM |
| Structure of a particle system. More... | |
Macros | |
| #define | BITMAP_PART 8 |
| bitmap particle | |
| #define | CIRCLE_PART 6 |
| circle particle | |
| #define | FIRE_PART 4 |
| fire particle | |
| #define | NORMAL_PART 0 |
| classic moving particle | |
| #define | PIXEL_PART 7 |
| pixel particle | |
| #define | SINUS_PART 1 |
| sinus based moving particle | |
| #define | SNOW_PART 3 |
| snow particle | |
| #define | STAR_PART 5 |
| star particle | |
| #define | TEXT_PART 9 |
| bitmap particle | |
| #define | TRANS_PART 2 |
| transparent particle | |
Functions | |
| int | add_particle (PARTICLE_SYSTEM *psys, int spr, int mode, int lifetime, int size, ALLEGRO_COLOR color, PHYSICS object) |
| add a particle to a particle system | |
| int | add_particle_ex (PARTICLE_SYSTEM *psys, int spr, int mode, int off_x, int off_y, int lifetime, int size, ALLEGRO_COLOR color, double vx, double vy, double vz, double ax, double ay, double az) |
| add a particle to a particle system, all in line version (you have to set the PHYSICS object parameter in the function parameter instead of providing a PHYSICS object) | |
| int | draw_particle (PARTICLE_SYSTEM *psys, double xpos, double ypos, int w, int h, double range) |
| draw particles of a particle system | |
| int | free_particle_system (PARTICLE_SYSTEM **psys) |
| destroy and free a particle system | |
| int | init_particle_system (PARTICLE_SYSTEM **psys, int max, double x, double y, double z, int max_sprites) |
| initialize a particle system | |
| int | manage_particle (PARTICLE_SYSTEM *psys) |
| update particles positions usting particle system internal timer | |
| int | manage_particle_ex (PARTICLE_SYSTEM *psys, double delta_t) |
| update particles positions usting provided delta time | |
| int | move_particles (PARTICLE_SYSTEM *psys, double vx, double vy, double vz) |
| draw particles of a particle system | |