#include <cl_renderer.h>
Data Fields | |
qboolean | inuse |
qboolean | invis |
r_program_t * | program |
ptlArt_t * | pic |
ptlArt_t * | model |
blend_t | blend |
style_t | style |
vec2_t | size |
vec3_t | scale |
vec4_t | color |
vec3_t | s |
vec3_t | origin |
vec3_t | offset |
vec3_t | angles |
vec3_t | lightColor |
float | lightIntensity |
float | lightSustain |
int | levelFlags |
int | skin |
struct ptl_s * | children |
struct ptl_s * | next |
struct ptl_s * | parent |
ptlDef_t * | ctrl |
int | startTime |
int | frame |
int | endFrame |
float | fps |
float | lastFrame |
float | tps |
float | lastThink |
fade_t | thinkFade |
fade_t | frameFade |
float | t |
float | dt |
float | life |
int | rounds |
int | roundsCnt |
float | scrollS |
float | scrollT |
vec3_t | a |
vec3_t | v |
vec3_t | omega |
qboolean | physics |
qboolean | autohide |
qboolean | stayalive |
qboolean | weather |
Definition at line 142 of file cl_renderer.h.
acceleration vector
Definition at line 187 of file cl_renderer.h.
Referenced by CL_ParticleFunction(), CL_ParticleRun2(), CL_ParticleRunTimed(), and CL_ParticleSpawn().
Definition at line 159 of file cl_renderer.h.
Referenced by CL_ParticleRun2(), LE_AddGrenade(), LE_AddProjectile(), LET_Projectile(), R_DrawParticleModel(), and R_GetSpriteVectors().
only draw the particle if the current position is not higher than the current level (useful for weather particles)
Definition at line 191 of file cl_renderer.h.
Referenced by CL_ParticleRun2().
blend mode
Definition at line 151 of file cl_renderer.h.
Referenced by CL_ParticleRun2(), and R_DrawParticles().
struct ptl_s* ptl_s::children |
list of children
Definition at line 167 of file cl_renderer.h.
Referenced by CL_ParticleFree(), CL_ParticleFunction(), CL_ParticleRunTimed(), and CL_ParticleVisible().
Definition at line 155 of file cl_renderer.h.
Referenced by CL_DrawLineOfSight(), CL_ParticleRun2(), CL_ParticleSpawn(), R_DrawParticleModel(), R_DrawPtlCircle(), R_DrawPtlLine(), and R_DrawSprite().
pointer to the particle definition
Definition at line 172 of file cl_renderer.h.
Referenced by CL_ParticleCheckRounds(), CL_ParticleFunction(), CL_ParticleRun2(), CL_ParticleSpawn(), CL_RunMapParticles(), and PTL_DebugList_f().
float ptl_s::dt |
time increment for rendering this particle (delta time)
Definition at line 181 of file cl_renderer.h.
Referenced by CL_ParticleRun2().
int ptl_s::endFrame |
Definition at line 174 of file cl_renderer.h.
Referenced by CL_ParticleRun2().
float ptl_s::fps |
how many frames per second (animate)
Definition at line 175 of file cl_renderer.h.
Referenced by CL_ParticleRun2().
int ptl_s::frame |
Definition at line 174 of file cl_renderer.h.
Referenced by CL_ParseMapParticle(), CL_ParticleFunction(), and CL_ParticleRun2().
Definition at line 179 of file cl_renderer.h.
Referenced by CL_ParticleRun2().
particle active?
Definition at line 143 of file cl_renderer.h.
Referenced by CL_ParticleCheckRounds(), CL_ParticleFree(), CL_ParticleRun(), CL_ParticleRunTimed(), CL_ParticleSpawn(), PTL_DebugList_f(), and R_DrawParticles().
is this particle invisible
Definition at line 144 of file cl_renderer.h.
Referenced by CL_ParticleFree(), CL_ParticleRun2(), CL_ParticleVisible(), and R_DrawParticles().
float ptl_s::lastFrame |
time (in seconds) when the think function was last executed (perhaps this can be used to delay or speed up particle actions).
Definition at line 176 of file cl_renderer.h.
Referenced by CL_ParticleRun2().
float ptl_s::lastThink |
Definition at line 178 of file cl_renderer.h.
Referenced by CL_ParticleRun2().
Definition at line 163 of file cl_renderer.h.
Referenced by CL_ParticleFunction(), CL_ParticleSpawn(), CL_ParticleSpawnTimed(), and R_DrawParticles().
float ptl_s::life |
specifies how long a particle will be active (seconds)
Definition at line 182 of file cl_renderer.h.
Referenced by CL_ParticleRun2(), and CL_ParticleSpawn().
Definition at line 160 of file cl_renderer.h.
Referenced by CL_ParticleRun2().
float ptl_s::lightIntensity |
Definition at line 161 of file cl_renderer.h.
Referenced by CL_ParticleRun2().
float ptl_s::lightSustain |
Definition at line 162 of file cl_renderer.h.
Referenced by CL_ParticleRun2().
Model link.
Definition at line 149 of file cl_renderer.h.
Referenced by CL_ParseMapParticle(), CL_ParticleFunction(), CL_ParticleSpawn(), PTL_DebugList_f(), R_DrawParticleModel(), and R_DrawParticles().
struct ptl_s* ptl_s::next |
next peer in list
Definition at line 168 of file cl_renderer.h.
Referenced by CL_ParticleFree(), CL_ParticleFunction(), CL_ParticleRunTimed(), and CL_ParticleVisible().
Definition at line 158 of file cl_renderer.h.
Referenced by R_DrawSprite().
the rotation vector for the particle (newAngles = oldAngles + frametime * omega)
Definition at line 189 of file cl_renderer.h.
Referenced by CL_ParticleRun2(), and LE_AddGrenade().
start position - set initial s position to get this value
Definition at line 157 of file cl_renderer.h.
Referenced by CL_ParticleRun2(), and CL_ParticleSpawn().
struct ptl_s* ptl_s::parent |
pointer to parent
Definition at line 169 of file cl_renderer.h.
Referenced by CL_ParticleFunction(), CL_ParticleRun2(), CL_ParticleRunTimed(), and R_DrawSprite().
Picture link.
Definition at line 148 of file cl_renderer.h.
Referenced by CL_ParseMapParticle(), CL_ParticleFunction(), CL_ParticleRun2(), CL_ParticleSpawn(), PTL_DebugList_f(), R_DrawParticles(), and R_DrawSprite().
this glsl program is bound before the particle is executed
Definition at line 146 of file cl_renderer.h.
Referenced by CL_ParseMapParticle(), CL_ParticleFunction(), PTL_DebugList_f(), and R_DrawParticles().
int ptl_s::rounds |
specifies how many rounds a particle will be active
Definition at line 183 of file cl_renderer.h.
Referenced by CL_ParticleCheckRounds(), and CL_ParticleRun2().
int ptl_s::roundsCnt |
Definition at line 184 of file cl_renderer.h.
Referenced by CL_ParticleCheckRounds(), and CL_ParticleRun2().
current position
Definition at line 156 of file cl_renderer.h.
Referenced by CL_ParticleFunction(), CL_ParticleRun2(), CL_ParticleRunTimed(), CL_ParticleSpawn(), LE_AddProjectile(), LET_Projectile(), R_DrawParticleModel(), R_DrawPtlCircle(), R_DrawPtlLine(), and R_DrawSprite().
Definition at line 154 of file cl_renderer.h.
float ptl_s::scrollS |
Definition at line 185 of file cl_renderer.h.
Referenced by R_SpriteTexcoords().
float ptl_s::scrollT |
Definition at line 186 of file cl_renderer.h.
Referenced by R_SpriteTexcoords().
Definition at line 153 of file cl_renderer.h.
Referenced by CL_TargetingRadius(), LE_AddProjectile(), R_DrawPtlCircle(), and R_GetSpriteVectors().
int ptl_s::skin |
model skin to use for this particle
Definition at line 165 of file cl_renderer.h.
Referenced by R_DrawParticleModel().
int ptl_s::startTime |
Definition at line 173 of file cl_renderer.h.
Referenced by CL_ParticleRun2(), and CL_ParticleSpawn().
used for physics particles that hit the ground
Definition at line 194 of file cl_renderer.h.
Referenced by CL_ParticleRun2().
style mode
Definition at line 152 of file cl_renderer.h.
Referenced by CL_ParticleRun2(), R_DrawParticles(), and R_GetSpriteVectors().
float ptl_s::t |
time that the particle has been active already
Definition at line 180 of file cl_renderer.h.
Referenced by CL_ParticleRun2().
Definition at line 179 of file cl_renderer.h.
Referenced by CL_ParticleRun2().
float ptl_s::tps |
think per second - call the think function tps times each second, the first call at 1/tps seconds
Definition at line 177 of file cl_renderer.h.
Referenced by CL_ParticleRun2(), and CL_ParticleSpawn().
velocity vector
Definition at line 188 of file cl_renderer.h.
Referenced by CL_ParticleFunction(), CL_ParticleRun2(), CL_ParticleRunTimed(), CL_ParticleSpawn(), LE_AddProjectile(), and R_DrawPtlLine().
used to identify weather particles (can be switched off via cvar cl_particleweather)
Definition at line 195 of file cl_renderer.h.
Referenced by CL_ParticleRun2().