Inexor
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Functions
renderparticles.hpp File Reference

Go to the source code of this file.

Functions

void particleinit ()
 
void clearparticles ()
 
void clearparticleemitters ()
 
void seedparticles ()
 
void updateparticles ()
 
void renderparticles (bool mainpass=false)
 
bool printparticles (extentity &e, char *buf, int len)
 
void regularshape (int type, int radius, int color, int dir, int num, int fade, const vec &p, float size, int gravity, int vel=200, const vec *modfrom=nullptr, const vec *modto=nullptr)
 
bool canaddparticles ()
 
void regular_particle_splash (int type, int num, int fade, const vec &p, int color=0xFFFFFF, float size=1.0f, int radius=150, int gravity=2, int delay=0)
 
void regular_particle_flame (int type, const vec &p, float radius, float height, int color, int density=3, float scale=2.0f, float speed=200.0f, float fade=600.0f, int gravity=-15)
 
void particle_splash (int type, int num, int fade, const vec &p, int color=0xFFFFFF, float size=1.0f, int radius=150, int gravity=2)
 
void particle_trail (int type, int fade, const vec &from, const vec &to, int color=0xFFFFFF, float size=1.0f, int gravity=20)
 
void particle_text (const vec &s, const char *t, int type, int fade=2000, int color=0xFFFFFF, float size=2.0f, int gravity=0)
 
void particle_textcopy (const vec &s, const char *t, int type, int fade=2000, int color=0xFFFFFF, float size=2.0f, int gravity=0)
 
void particle_icon (const vec &s, int ix, int iy, int type, int fade=2000, int color=0xFFFFFF, float size=2.0f, int gravity=0)
 
void particle_meter (const vec &s, float val, int type, int fade=1, int color=0xFFFFFF, int color2=0xFFFFF, float size=2.0f)
 
void particle_flare (const vec &p, const vec &dest, int fade, int type, int color=0xFFFFFF, float size=0.28f, physent *owner=nullptr)
 
void particle_fireball (const vec &dest, float max, int type, int fade=-1, int color=0xFFFFFF, float size=4.0f)
 
void removetrackedparticles (physent *owner=nullptr)
 

Function Documentation

bool canaddparticles ( )
void clearparticleemitters ( )

References emitters, and regenemitters.

Referenced by clearparticles(), and modifyoctaent().

void clearparticles ( )
void particle_fireball ( const vec dest,
float  max,
int  type,
int  fade = -1,
int  color = 0xFFFFFF,
float  size = 4.0f 
)
void particle_flare ( const vec p,
const vec dest,
int  fade,
int  type,
int  color = 0xFFFFFF,
float  size = 0.28f,
physent owner = nullptr 
)
void particle_icon ( const vec s,
int  ix,
int  iy,
int  type,
int  fade = 2000,
int  color = 0xFFFFFF,
float  size = 2.0f,
int  gravity = 0 
)
void particle_meter ( const vec s,
float  val,
int  type,
int  fade = 1,
int  color = 0xFFFFFF,
int  color2 = 0xFFFFF,
float  size = 2.0f 
)
void particle_splash ( int  type,
int  num,
int  fade,
const vec p,
int  color = 0xFFFFFF,
float  size = 1.0f,
int  radius = 150,
int  gravity = 2 
)
void particle_text ( const vec s,
const char *  t,
int  type,
int  fade = 2000,
int  color = 0xFFFFFF,
float  size = 2.0f,
int  gravity = 0 
)
void particle_textcopy ( const vec s,
const char *  t,
int  type,
int  fade = 2000,
int  color = 0xFFFFFF,
float  size = 2.0f,
int  gravity = 0 
)
void particle_trail ( int  type,
int  fade,
const vec from,
const vec to,
int  color = 0xFFFFFF,
float  size = 1.0f,
int  gravity = 20 
)
void particleinit ( )
bool printparticles ( extentity e,
char *  buf,
int  len 
)
void regular_particle_flame ( int  type,
const vec p,
float  radius,
float  height,
int  color,
int  density = 3,
float  scale = 2.0f,
float  speed = 200.0f,
float  fade = 600.0f,
int  gravity = -15 
)
void regular_particle_splash ( int  type,
int  num,
int  fade,
const vec p,
int  color = 0xFFFFFF,
float  size = 1.0f,
int  radius = 150,
int  gravity = 2,
int  delay = 0 
)
void regularshape ( int  type,
int  radius,
int  color,
int  dir,
int  num,
int  fade,
const vec p,
float  size,
int  gravity,
int  vel = 200,
const vec modfrom = nullptr,
const vec modto = nullptr 
)
void removetrackedparticles ( physent owner = nullptr)
void renderparticles ( bool  mainpass = false)
void seedparticles ( )
void updateparticles ( )