8#ifndef __N_PARTICLE_HEADER
9#define __N_PARTICLE_HEADER
20#include <allegro5/allegro.h>
21#include <allegro5/allegro_audio.h>
22#include <allegro5/allegro_acodec.h>
23#include <allegro5/allegro_font.h>
24#include <allegro5/allegro_image.h>
25#include <allegro5/allegro_primitives.h>
98 double vx,
double vy,
double vz,
99 double ax,
double ay,
double az );
Structure of a generic LIST container.
N_TIME timer
Internal: particle system timer.
int max_sprites
size of the picture library
ALLEGRO_COLOR color
color of the particle
PHYSICS object
particle physical properties
int spr_id
sprite id in library
VECTOR3D source
Coordinate of emitting point.
LIST * list
list of PARTICLE pointers
int mode
particle mode: NORMAL_PART,SINUS_PART,PIXEL_PART
ALLEGRO_BITMAP ** sprites
Library of picture for the particles.
int draw_particle(PARTICLE_SYSTEM *psys, double xpos, double ypos, int w, int h, double range)
draw particles of a particle system
int move_particles(PARTICLE_SYSTEM *psys, double vx, double vy, double vz)
draw particles of a particle system
int manage_particle_ex(PARTICLE_SYSTEM *psys, double delta_t)
update particles positions usting provided delta time
int free_particle_system(PARTICLE_SYSTEM **psys)
destroy and free a particle system
int manage_particle(PARTICLE_SYSTEM *psys)
update particles positions usting particle system internal timer
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 paramete...
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 init_particle_system(PARTICLE_SYSTEM **psys, int max, double x, double y, double z, int max_sprites)
initialize a particle system
Structure of a single particle.
Structure of a particle system.
double VECTOR3D[3]
struct of a point
structure of the physics of an object
Simple 3D movement simulation.
Common headers and low-level hugly functions & define.
List structures and definitions.