UFO: Alien Invasion
|
Go to the source code of this file.
Functions | |
static void | R_GetSpriteVectors (const ptl_t *p, vec3_t right, vec3_t up) |
Get Sprite Vectors. More... | |
static void | R_SpriteTexcoords (const ptl_t *p, float out[8]) |
Fills float array with texture coordinates. More... | |
static void | R_DrawSprite (const ptl_t *p) |
static void | R_DrawParticleModel (ptl_t *p) |
static void | R_DrawPtlCircle (const ptl_t *p) |
Draws a circle out of lines. More... | |
static void | R_DrawPtlLine (const ptl_t *p) |
static void | R_SetBlendMode (int mode) |
void | R_DrawParticles (void) |
Variables | |
ptl_t | r_particleArray [MAX_PTLS] |
int | r_numParticles |
cvar_t * | r_particles |
Definition at line 164 of file r_particle.cpp.
References modelInfo_t::angles, ptl_s::angles, ptlArt_s::art, modelInfo_t::color, ptl_s::color, modelInfo_t::model, ptlArt_s::model, ptl_s::model, OBJZERO, modelInfo_t::origin, R_DrawModelParticle(), ptl_s::s, modelInfo_t::skin, and ptl_s::skin.
Referenced by R_DrawParticles().
Definition at line 266 of file r_particle.cpp.
References ptl_s::blend, i, cvar_s::integer, ptl_s::inuse, ptl_s::invis, ptl_s::levelFlags, ptl_s::model, ptl_s::pic, ptl_s::program, R_BlendFunc(), R_Color(), R_DrawParticleModel(), R_DrawPtlCircle(), R_DrawPtlLine(), R_DrawSprite(), r_numParticles, R_SetBlendMode(), R_TexEnv(), R_UseProgram(), refdef, ptl_s::style, STYLE_CIRCLE, STYLE_LINE, and rendererData_t::worldlevel.
Referenced by R_RenderFrame().
Draws a circle out of lines.
[in] | p | The particle definition with origin, radius and color |
Definition at line 186 of file r_particle.cpp.
References ptl_s::color, R_DrawCircle(), R_EnableTexture(), ptl_s::s, ptl_s::size, and texunit_diffuse.
Referenced by R_DrawParticles().
Definition at line 201 of file r_particle.cpp.
References rendererData_t::batchCount, ptl_s::color, R_BindArray(), R_BindDefaultArray(), R_Color(), R_EnableTexture(), refdef, ptl_s::s, texunit_diffuse, and ptl_s::v.
Referenced by R_DrawParticles().
Definition at line 101 of file r_particle.cpp.
References ptlArt_s::art, rendererData_t::batchCount, ptl_s::color, ptlArt_s::image, ptl_s::offset, ptl_s::parent, ptl_s::pic, R_BindArray(), R_BindDefaultArray(), R_BindTexture, R_Color(), R_GetSpriteVectors(), R_SpriteTexcoords(), refdef, ptl_s::s, image_s::texnum, VectorCopy, VectorMA(), and VectorNormalizeFast().
Referenced by R_DrawParticles().
Get Sprite Vectors.
[in] | p | the particle to give the dimensions for |
[out] | right | the output right vector for the particle |
[out] | up | the output up vector for the particle |
Definition at line 47 of file r_particle.cpp.
References ptl_s::angles, AngleVectors(), Com_Error(), CrossProduct(), ERR_FATAL, rlocals_s::forward, r_locals, rlocals_s::right, ptl_s::size, ptl_s::style, STYLE_AXIS, STYLE_BEAM, STYLE_FACING, STYLE_ROTATED, rlocals_s::up, VectorNormalizeFast(), and VectorScale.
Referenced by R_DrawSprite().
Definition at line 235 of file r_particle.cpp.
References BLEND_ADD, BLEND_BLEND, BLEND_FILTER, BLEND_INVFILTER, BLEND_ONE, BLEND_REPLACE, Com_Error(), ERR_DROP, R_BlendFunc(), and R_TexEnv().
Referenced by R_DrawParticles().
Fills float array with texture coordinates.
Definition at line 80 of file r_particle.cpp.
References refdef, ptl_s::scrollS, ptl_s::scrollT, and rendererData_t::time.
Referenced by R_DrawSprite().
int r_numParticles |
Definition at line 30 of file r_particle.cpp.
Referenced by CL_ClearState(), CL_ParticleCheckRounds(), CL_ParticleRun(), CL_ParticleSpawn(), and R_DrawParticles().
Definition at line 29 of file r_particle.cpp.
Referenced by CL_ParticleCheckRounds(), CL_ParticleRun(), and CL_ParticleSpawn().
cvar_t* r_particles |
Definition at line 32 of file r_particle.cpp.
Referenced by R_RegisterSystemVars().