UFO: Alien Invasion
Loading...
Searching...
No Matches
ptl_t Struct Reference

#include <cl_renderer.h>

Collaboration diagram for ptl_t:
Collaboration graph

Data Fields

bool inuse
bool 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_s * children
struct ptl_s * next
struct ptl_s * parent
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 oldV
vec3_t omega
bool physics
bool autohide
bool stayalive
bool weather
bool hitSolid
bool stick
bool bounce

Detailed Description

Definition at line 107 of file cl_renderer.h.

Field Documentation

◆ a

vec3_t ptl_t::a

acceleration vector

Definition at line 152 of file cl_renderer.h.

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

◆ angles

◆ autohide

bool ptl_t::autohide

only draw the particle if the current position is not higher than the current level (useful for weather particles)

Definition at line 157 of file cl_renderer.h.

Referenced by CL_ParticleRun2().

◆ blend

blend_t ptl_t::blend

blend mode

Definition at line 116 of file cl_renderer.h.

Referenced by CL_ParticleRun2(), and R_DrawParticles().

◆ bounce

bool ptl_t::bounce

true if the particle should bouce when a solid is hot (only physic particles)

Definition at line 165 of file cl_renderer.h.

Referenced by CL_ParticleRun2().

◆ children

struct ptl_s* ptl_t::children

list of children

Definition at line 132 of file cl_renderer.h.

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

◆ color

◆ ctrl

ptlDef_t* ptl_t::ctrl

pointer to the particle definition

Definition at line 137 of file cl_renderer.h.

Referenced by CL_ParticleCheckRounds(), CL_ParticleFunction(), CL_ParticleRun2(), CL_ParticleSpawn(), and CL_RunMapParticles().

◆ dt

float ptl_t::dt

time increment for rendering this particle (delta time)

Definition at line 146 of file cl_renderer.h.

Referenced by CL_ParticleRun2().

◆ endFrame

int ptl_t::endFrame

Definition at line 139 of file cl_renderer.h.

Referenced by CL_ParticleRun2().

◆ fps

float ptl_t::fps

how many frames per second (animate)

Definition at line 140 of file cl_renderer.h.

Referenced by CL_ParticleRun2().

◆ frame

int ptl_t::frame

Definition at line 139 of file cl_renderer.h.

Referenced by CL_ParseMapParticle(), CL_ParticleFunction(), and CL_ParticleRun2().

◆ frameFade

fade_t ptl_t::frameFade

Definition at line 144 of file cl_renderer.h.

Referenced by CL_ParticleRun2().

◆ hitSolid

bool ptl_t::hitSolid

true if a trace (only physic particles) hits something solid

Definition at line 163 of file cl_renderer.h.

Referenced by CL_ParticleRun2().

◆ inuse

bool ptl_t::inuse

◆ invis

bool ptl_t::invis

is this particle invisible

Definition at line 109 of file cl_renderer.h.

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

◆ lastFrame

float ptl_t::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 141 of file cl_renderer.h.

Referenced by CL_ParticleRun2().

◆ lastThink

float ptl_t::lastThink

Definition at line 143 of file cl_renderer.h.

Referenced by CL_ParticleRun2().

◆ levelFlags

int ptl_t::levelFlags

◆ life

float ptl_t::life

specifies how long a particle will be active (seconds)

Definition at line 147 of file cl_renderer.h.

Referenced by CL_ParticleRun2(), and CL_ParticleSpawn().

◆ lightColor

vec3_t ptl_t::lightColor

Definition at line 125 of file cl_renderer.h.

Referenced by CL_ParticleRun2().

◆ lightIntensity

float ptl_t::lightIntensity

Definition at line 126 of file cl_renderer.h.

Referenced by CL_ParticleRun2().

◆ lightSustain

float ptl_t::lightSustain

Definition at line 127 of file cl_renderer.h.

Referenced by CL_ParticleRun2().

◆ model

ptlArt_t* ptl_t::model

◆ next

struct ptl_s* ptl_t::next

next peer in list

Definition at line 133 of file cl_renderer.h.

Referenced by CL_ParticleFunction(), and CL_ParticleRunTimed().

◆ offset

vec3_t ptl_t::offset

Definition at line 123 of file cl_renderer.h.

Referenced by R_DrawSprite().

◆ oldV

vec3_t ptl_t::oldV

old velocity vector (in case the particle e.g. bounces)

Definition at line 154 of file cl_renderer.h.

Referenced by CL_ParticleRun2().

◆ omega

vec3_t ptl_t::omega

the rotation vector for the particle (newAngles = oldAngles + frametime * omega)

Definition at line 155 of file cl_renderer.h.

Referenced by CL_ParticleRun2(), and LE_AddGrenade().

◆ origin

vec3_t ptl_t::origin

start position - set initial s position to get this value

Definition at line 122 of file cl_renderer.h.

Referenced by CL_ParticleRun2(), CL_ParticleSpawn(), and PTL_Trace().

◆ parent

struct ptl_s* ptl_t::parent

pointer to parent

Definition at line 134 of file cl_renderer.h.

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

◆ physics

bool ptl_t::physics

basic physics

Definition at line 156 of file cl_renderer.h.

Referenced by CL_ParticleRun2().

◆ pic

ptlArt_t* ptl_t::pic

◆ program

r_program_t* ptl_t::program

this glsl program is bound before the particle is executed

Definition at line 111 of file cl_renderer.h.

Referenced by CL_ParseMapParticle(), CL_ParticleFunction(), and R_DrawParticles().

◆ rounds

int ptl_t::rounds

specifies how many rounds a particle will be active

Definition at line 148 of file cl_renderer.h.

Referenced by CL_ParticleCheckRounds(), and CL_ParticleRun2().

◆ roundsCnt

int ptl_t::roundsCnt

Definition at line 149 of file cl_renderer.h.

Referenced by CL_ParticleCheckRounds(), and CL_ParticleRun2().

◆ s

◆ scale

vec3_t ptl_t::scale

Definition at line 119 of file cl_renderer.h.

◆ scrollS

float ptl_t::scrollS

Definition at line 150 of file cl_renderer.h.

Referenced by R_SpriteTexcoords().

◆ scrollT

float ptl_t::scrollT

Definition at line 151 of file cl_renderer.h.

Referenced by R_SpriteTexcoords().

◆ size

◆ skin

int ptl_t::skin

model skin to use for this particle

Definition at line 130 of file cl_renderer.h.

Referenced by R_DrawParticleModel().

◆ startTime

int ptl_t::startTime

Definition at line 138 of file cl_renderer.h.

Referenced by CL_ParticleRun2(), and CL_ParticleSpawn().

◆ stayalive

bool ptl_t::stayalive

used for physics particles that hit the ground

Definition at line 160 of file cl_renderer.h.

Referenced by CL_ParticleRun2().

◆ stick

bool ptl_t::stick

true if a particle sticks to the solid the trace hits before (only physic particles)

Definition at line 164 of file cl_renderer.h.

Referenced by CL_ParticleRun2().

◆ style

style_t ptl_t::style

style mode

Definition at line 117 of file cl_renderer.h.

Referenced by CL_ParticleRun2(), R_DrawParticles(), and R_GetSpriteVectors().

◆ t

float ptl_t::t

time that the particle has been active already

Definition at line 145 of file cl_renderer.h.

Referenced by CL_ParticleRun2().

◆ thinkFade

fade_t ptl_t::thinkFade

Definition at line 144 of file cl_renderer.h.

Referenced by CL_ParticleRun2().

◆ tps

float ptl_t::tps

think per second - call the think function tps times each second, the first call at 1/tps seconds

Definition at line 142 of file cl_renderer.h.

Referenced by CL_ParticleRun2(), and CL_ParticleSpawn().

◆ v

◆ weather

bool ptl_t::weather

used to identify weather particles (can be switched off via cvar cl_particleweather)

Definition at line 161 of file cl_renderer.h.

Referenced by CL_ParticleRun2().


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