ptl_s Struct Reference

#include <cl_renderer.h>

Collaboration diagram for ptl_s:
Collaboration graph
[legend]

Data Fields

qboolean inuse
qboolean invis
r_program_tprogram
ptlArt_tpic
ptlArt_tmodel
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_schildren
struct ptl_snext
struct ptl_sparent
ptlDef_tctrl
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

Detailed Description

Definition at line 142 of file cl_renderer.h.


Field Documentation

acceleration vector

Definition at line 187 of file cl_renderer.h.

Referenced by CL_ParticleFunction(), CL_ParticleRun2(), CL_ParticleRunTimed(), and CL_ParticleSpawn().

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().

list of children

Definition at line 167 of file cl_renderer.h.

Referenced by CL_ParticleFree(), CL_ParticleFunction(), CL_ParticleRunTimed(), and CL_ParticleVisible().

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().

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().

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().

is this particle invisible

Definition at line 144 of file cl_renderer.h.

Referenced by CL_ParticleFree(), CL_ParticleRun2(), CL_ParticleVisible(), and R_DrawParticles().

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().

Definition at line 178 of file cl_renderer.h.

Referenced by CL_ParticleRun2().

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().

Definition at line 161 of file cl_renderer.h.

Referenced by CL_ParticleRun2().

Definition at line 162 of file cl_renderer.h.

Referenced by CL_ParticleRun2().

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().

pointer to parent

Definition at line 169 of file cl_renderer.h.

Referenced by CL_ParticleFunction(), CL_ParticleRun2(), CL_ParticleRunTimed(), and R_DrawSprite().

basic physics

Definition at line 190 of file cl_renderer.h.

Referenced by CL_ParticleRun2().

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().

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().

Definition at line 184 of file cl_renderer.h.

Referenced by CL_ParticleCheckRounds(), and CL_ParticleRun2().

Definition at line 154 of file cl_renderer.h.

Definition at line 185 of file cl_renderer.h.

Referenced by R_SpriteTexcoords().

Definition at line 186 of file cl_renderer.h.

Referenced by R_SpriteTexcoords().

model skin to use for this particle

Definition at line 165 of file cl_renderer.h.

Referenced by R_DrawParticleModel().

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().

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().


The documentation for this struct was generated from the following file:

Generated by  doxygen 1.6.2