Open source remastering of the Freespace 2 engine
particle.h File Reference

Go to the source code of this file.


struct  particle_info
struct  particle
struct  particle_emitter


#define PARTICLE_DEBUG   0
#define PARTICLE_FIRE   2
#define PARTICLE_SMOKE   3
#define PARTICLE_SMOKE2   4


typedef struct particle_info particle_info
typedef struct particle particle
typedef struct particle_emitter particle_emitter


void particle_init ()
void particle_close ()
void particle_move_all (float frametime)
void particle_render_all ()
void particle_kill_all ()
particleparticle_create (particle_info *pinfo)
particleparticle_create (vec3d *pos, vec3d *vel, float lifetime, float rad, int type, int optional_data=-1, float tracer_length=-1.0f, class object *objp=NULL, bool reverse=false)
void particle_emit (particle_emitter *pe, int type, int optional_data, float range=1.0)

Macro Definition Documentation


Definition at line 57 of file particle.h.


Definition at line 49 of file particle.h.


Definition at line 54 of file particle.h.

#define PARTICLE_DEBUG   0

Definition at line 48 of file particle.h.

#define PARTICLE_FIRE   2

Definition at line 51 of file particle.h.

#define PARTICLE_SMOKE   3

Definition at line 52 of file particle.h.

#define PARTICLE_SMOKE2   4

Definition at line 53 of file particle.h.

Typedef Documentation

typedef struct particle particle
typedef struct particle_info particle_info

Function Documentation

void particle_close ( )

Definition at line 83 of file particle.cpp.

particle* particle_create ( particle_info pinfo)

Definition at line 105 of file particle.cpp.

particle* particle_create ( vec3d pos,
vec3d vel,
float  lifetime,
float  rad,
int  type,
int  optional_data = -1,
float  tracer_length = -1.0f,
class object objp = NULL,
bool  reverse = false 

Definition at line 202 of file particle.cpp.

void particle_emit ( particle_emitter pe,
int  type,
int  optional_data,
float  range = 1.0 

Definition at line 495 of file particle.cpp.

void particle_init ( )

Definition at line 47 of file particle.cpp.

void particle_kill_all ( )

Definition at line 304 of file particle.cpp.

void particle_move_all ( float  frametime)

Definition at line 239 of file particle.cpp.

void particle_render_all ( )

Definition at line 346 of file particle.cpp.