R:/projects/actioncube/_svn/trunk/ac/source/src/renderparticles.cpp File Reference

#include "pch.h"
#include "cube.h"

Include dependency graph for renderparticles.cpp:


Classes

struct  expvert
struct  particle
struct  parttype

Defines

#define MAXPARTYPES   13

Functions

static void subdivide (int depth, int face)
static void genface (int depth, int i1, int i2, int i3)
static void inithemisphere (int hres, int depth)
GLuint createexpmodtex (int size, float minval)
 VARP (mtexplosion, 0, 1, 1)
void setupexplosion ()
void drawexplosion (bool inside, float r, float g, float b, float a)
void cleanupexplosion ()
void particleinit ()
void cleanupparticles ()
void particlereset ()
void newparticle (const vec &o, const vec &d, int fade, int type)
 VAR (particlesize, 20, 100, 500)
 VARP (blood, 0, 1, 1)
 VARP (bloodttl, 0, 10000, 30000)
void render_particles (int time, int typemask)
void particle_emit (int type, int *args, int basetime, int seed, const vec &p)
void particle_flash (int type, float scale, float angle, const vec &p)
void particle_splash (int type, int num, int fade, const vec &p)
void particle_trail (int type, int fade, const vec &s, const vec &e)
void particle_fireball (int type, const vec &o)
 VARP (bulletbouncesound, 0, 1, 1)
 VARP (bullethole, 0, 1, 1)
 VARP (bulletholettl, 0, 10000, 30000)
 VARP (bulletbouncesoundrad, 0, 15, 1000)
bool addbullethole (dynent *d, const vec &from, const vec &to, float radius, bool noisy)
 VARP (scorch, 0, 1, 1)
 VARP (scorchttl, 0, 10000, 30000)
bool addscorchmark (vec &o, float radius)
 VARP (shotline, 0, 1, 1)
 VARP (shotlinettl, 0, 75, 10000)
 VARP (bulletairsound, 0, 1, 1)
 VARP (bulletairsoundrad, 0, 15, 1000)
 VARP (bulletairsoundsourcerad, 0, 8, 1000)
 VARP (bulletairsounddestrad, 0, 8, 1000)
void addshotline (dynent *pl, const vec &from, const vec &to)

Variables

static GLushort * hemiindices = NULL
static vec * hemiverts = NULL
static int heminumverts = 0
static int heminumindices = 0
static struct expvert * expverts
static GLuint expmodtex [2] = {0, 0}
static GLuint lastexpmodtex = 0
particle * parlist [MAXPARTYPES]
particle * parempty = NULL
static Texture * parttex [7]
static struct parttype parttypes []

Define Documentation

#define MAXPARTYPES   13


Function Documentation

bool addbullethole ( dynent *  d,
const vec &  from,
const vec &  to,
float  radius,
bool  noisy 
)

bool addscorchmark ( vec &  o,
float  radius 
)

void addshotline ( dynent *  pl,
const vec &  from,
const vec &  to 
)

void cleanupexplosion (  ) 

void cleanupparticles (  ) 

GLuint createexpmodtex ( int  size,
float  minval 
)

void drawexplosion ( bool  inside,
float  r,
float  g,
float  b,
float  a 
)

static void genface ( int  depth,
int  i1,
int  i2,
int  i3 
) [static]

static void inithemisphere ( int  hres,
int  depth 
) [static]

void newparticle ( const vec &  o,
const vec &  d,
int  fade,
int  type 
)

void particle_emit ( int  type,
int *  args,
int  basetime,
int  seed,
const vec &  p 
)

void particle_fireball ( int  type,
const vec &  o 
)

void particle_flash ( int  type,
float  scale,
float  angle,
const vec &  p 
)

void particle_splash ( int  type,
int  num,
int  fade,
const vec &  p 
)

void particle_trail ( int  type,
int  fade,
const vec &  s,
const vec &  e 
)

void particleinit (  ) 

void particlereset (  ) 

void render_particles ( int  time,
int  typemask 
)

void setupexplosion (  ) 

static void subdivide ( int  depth,
int  face 
) [static]

VAR ( particlesize  ,
20  ,
100  ,
500   
)

VARP ( bulletairsounddestrad  ,
0  ,
8  ,
1000   
)

VARP ( bulletairsoundsourcerad  ,
0  ,
8  ,
1000   
)

VARP ( bulletairsoundrad  ,
0  ,
15  ,
1000   
)

VARP ( bulletairsound  ,
0  ,
1  ,
1   
)

VARP ( shotlinettl  ,
0  ,
75  ,
10000   
)

VARP ( shotline  ,
0  ,
1  ,
1   
)

VARP ( scorchttl  ,
0  ,
10000  ,
30000   
)

VARP ( scorch  ,
0  ,
1  ,
1   
)

VARP ( bulletbouncesoundrad  ,
0  ,
15  ,
1000   
)

VARP ( bulletholettl  ,
0  ,
10000  ,
30000   
)

VARP ( bullethole  ,
0  ,
1  ,
1   
)

VARP ( bulletbouncesound  ,
0  ,
1  ,
1   
)

VARP ( bloodttl  ,
0  ,
10000  ,
30000   
)

VARP ( blood  ,
0  ,
1  ,
1   
)

VARP ( mtexplosion  ,
0  ,
1  ,
1   
)


Variable Documentation

GLuint expmodtex[2] = {0, 0} [static]

struct expvert * expverts [static]

GLushort* hemiindices = NULL [static]

int heminumindices = 0 [static]

int heminumverts = 0 [static]

vec* hemiverts = NULL [static]

GLuint lastexpmodtex = 0 [static]

particle * parempty = NULL

particle* parlist[MAXPARTYPES]

Texture* parttex[7] [static]

struct parttype parttypes[] [static]


Generated on Mon Dec 8 21:41:33 2008 for AssaultCube by  doxygen 1.5.7.1