![]() |
DarkPlaces
Game engine based on the Quake 1 engine by id Software, developed by LadyHavoc
|
|
Go to the source code of this file.
Data Structures | |
| struct | explosion_t |
Macros | |
| #define | EXPLOSIONGRID 8 |
| #define | EXPLOSIONTRIS (EXPLOSIONGRID*EXPLOSIONGRID*2) |
| #define | EXPLOSIONVERTS ((EXPLOSIONGRID+1)*(EXPLOSIONGRID+1)) |
Functions | |
| static void | R_DrawExplosion_TransparentCallback (const entity_render_t *ent, const rtlight_t *rtlight, int numsurfaces, int *surfacelist) |
| void | R_DrawExplosions (void) |
| void | R_Explosion_Init (void) |
| static void | r_explosion_newmap (void) |
| static void | r_explosion_shutdown (void) |
| static void | r_explosion_start (void) |
| static int | R_ExplosionVert (int column, int row) |
| static void | R_MoveExplosion (explosion_t *e) |
| void | R_NewExplosion (const vec3_t org) |
Variables | |
| static explosion_t | explosion [MAX_EXPLOSIONS] |
| static int | explosionnoiseindex [EXPLOSIONVERTS] |
| static vec3_t | explosionpoint [EXPLOSIONVERTS] |
| static float | explosiontexcoord2f [EXPLOSIONVERTS][2] |
| static rtexture_t * | explosiontexture |
| static rtexturepool_t * | explosiontexturepool |
| static unsigned short | explosiontris [EXPLOSIONTRIS][3] |
| static int | numexplosions = 0 |
| static cvar_t | r_drawexplosions = {CF_CLIENT, "r_drawexplosions", "1", "enables rendering of explosion shells (see also cl_particles_explosions_shell)"} |
| cvar_t | r_explosionclip = {CF_CLIENT | CF_ARCHIVE, "r_explosionclip", "1", "enables collision detection for explosion shell (so that it flattens against walls and floors)"} |
| #define EXPLOSIONGRID 8 |
Definition at line 25 of file r_explosion.c.
Referenced by R_Explosion_Init(), R_ExplosionVert(), and R_NewExplosion().
| #define EXPLOSIONTRIS (EXPLOSIONGRID*EXPLOSIONGRID*2) |
Definition at line 27 of file r_explosion.c.
Referenced by R_DrawExplosion_TransparentCallback().
| #define EXPLOSIONVERTS ((EXPLOSIONGRID+1)*(EXPLOSIONGRID+1)) |
Definition at line 26 of file r_explosion.c.
Referenced by R_DrawExplosion_TransparentCallback(), R_MoveExplosion(), and R_NewExplosion().
|
static |
Definition at line 203 of file r_explosion.c.
References explosion_t::alpha, explosion, explosiontexcoord2f, explosiontexture, EXPLOSIONTRIS, explosiontris, EXPLOSIONVERTS, GL_BlendFunc(), GL_Color(), GL_CullFace(), GL_DepthMask(), GL_DepthRange(), GL_DepthTest(), GL_ONE, GL_PolygonOffset(), GL_SRC_ALPHA, identitymatrix, NULL, R_EntityMatrix(), R_Mesh_Draw(), R_Mesh_PrepareVertices_Generic_Arrays(), r_refdef, R_SetupShader_Generic(), and explosion_t::vert.
Referenced by R_DrawExplosions().
Definition at line 264 of file r_explosion.c.
References alpha, explosion, NULL, numexplosions, origin, R_DrawExplosion_TransparentCallback(), r_drawexplosions, R_MeshQueue_AddTransparent(), R_MoveExplosion(), and TRANSPARENTSORT_DISTANCE.
Referenced by R_RenderScene().
Definition at line 131 of file r_explosion.c.
References Cvar_RegisterVariable(), EXPLOSIONGRID, explosiontris, NULL, r_drawexplosions, r_explosion_newmap(), r_explosion_shutdown(), r_explosion_start(), r_explosionclip, R_ExplosionVert(), R_RegisterModule(), x, and y.
Referenced by Render_Init().
Definition at line 105 of file r_explosion.c.
References explosion, and numexplosions.
Referenced by R_Explosion_Init().
Definition at line 100 of file r_explosion.c.
References explosiontexturepool, and R_FreeTexturePool().
Referenced by R_Explosion_Init().
Definition at line 63 of file r_explosion.c.
References a, b, bound, data, explosiontexture, explosiontexturepool, fractalnoise(), g, noise1, noise2, noise3, NULL, r, R_AllocTexturePool(), R_LoadTexture2D(), TEXF_ALPHA, TEXF_FORCELINEAR, TEXF_MIPMAP, TEXTYPE_BGRA, x, and y.
Referenced by R_Explosion_Init().
Definition at line 111 of file r_explosion.c.
References cos(), EXPLOSIONGRID, explosionnoiseindex, explosionpoint, explosiontexcoord2f, float, M_PI, and sin().
Referenced by R_Explosion_Init().
|
static |
Definition at line 227 of file r_explosion.c.
References explosion_t::alpha, cl, CL_TraceLine(), explosion_t::clipping, collision_extendmovelength, DotProduct, trace_t::endpos, explosion_t::endtime, EXPLOSIONVERTS, explosion_t::fade, trace_t::fraction, frametime, MOVE_NOMONSTERS, plane_t::normal, NULL, trace_t::plane, SUPERCONTENTS_SOLID, explosion_t::time, VectorCopy, VectorMA, explosion_t::vert, and explosion_t::vertvel.
Referenced by R_DrawExplosions().
Definition at line 160 of file r_explosion.c.
References explosion_t::alpha, cl, cl_explosions_alpha_end, cl_explosions_alpha_start, cl_explosions_lifetime, cl_explosions_size_end, cl_explosions_size_start, CL_TraceLine(), explosion_t::clipping, collision_extendmovelength, trace_t::endpos, explosion_t::endtime, explosion, EXPLOSIONGRID, explosionnoiseindex, explosionpoint, EXPLOSIONVERTS, explosion_t::fade, fractalnoisequick(), max, MAX_EXPLOSIONS, MOVE_NOMONSTERS, n, noise, NULL, numexplosions, explosion_t::origin, r_explosionclip, explosion_t::starttime, SUPERCONTENTS_SOLID, explosion_t::time, VectorCopy, VectorMA, VectorScale, explosion_t::vert, and explosion_t::vertvel.
Referenced by CL_ParticleExplosion().
|
static |
Definition at line 50 of file r_explosion.c.
Referenced by R_DrawExplosion_TransparentCallback(), R_DrawExplosions(), r_explosion_newmap(), and R_NewExplosion().
|
static |
Definition at line 33 of file r_explosion.c.
Referenced by R_ExplosionVert(), and R_NewExplosion().
|
static |
Definition at line 34 of file r_explosion.c.
Referenced by R_ExplosionVert(), and R_NewExplosion().
|
static |
Definition at line 31 of file r_explosion.c.
Referenced by R_DrawExplosion_TransparentCallback(), and R_ExplosionVert().
|
static |
Definition at line 52 of file r_explosion.c.
Referenced by R_DrawExplosion_TransparentCallback(), and r_explosion_start().
|
static |
Definition at line 55 of file r_explosion.c.
Referenced by r_explosion_shutdown(), and r_explosion_start().
|
static |
Definition at line 32 of file r_explosion.c.
Referenced by R_DrawExplosion_TransparentCallback(), and R_Explosion_Init().
|
static |
Definition at line 29 of file r_explosion.c.
Referenced by R_DrawExplosions(), r_explosion_newmap(), and R_NewExplosion().
|
static |
Definition at line 60 of file r_explosion.c.
Referenced by R_DrawExplosions(), and R_Explosion_Init().
| cvar_t r_explosionclip = {CF_CLIENT | CF_ARCHIVE, "r_explosionclip", "1", "enables collision detection for explosion shell (so that it flattens against walls and floors)"} |
Definition at line 58 of file r_explosion.c.
Referenced by M_Menu_Options_Effects_AdjustSliders(), M_Options_Effects_Draw(), R_Explosion_Init(), and R_NewExplosion().