MCPcopy Create free account
hub / github.com/JACoders/OpenJK / Draw

Method Draw

code/cgame/FxPrimitives.cpp:142–156  ·  view source on GitHub ↗

----------------------------

Source from the content-addressed store, hash-verified

140
141//----------------------------
142void CParticle::Draw()
143{
144 if ( mFlags & FX_DEPTH_HACK )
145 {
146 // Not sure if first person needs to be set, but it can't hurt?
147 mRefEnt.renderfx |= RF_DEPTHHACK;
148 }
149
150 // Add our refEntity to the scene
151 VectorCopy( mOrigin1, mRefEnt.origin );
152 theFxHelper.AddFxToScene( &mRefEnt );
153
154 drawnFx++;
155 mParticles++;
156}
157
158//----------------------------
159// Update

Callers

nothing calls this directly

Calls 12

VectorCopyFunction · 0.85
VectorScaleFunction · 0.85
Q_flrandFunction · 0.85
DistanceSquaredFunction · 0.85
VectorAddFunction · 0.85
VectorCopy2Function · 0.85
CG_PointContentsFunction · 0.70
VectorMAFunction · 0.50
AddFxToSceneMethod · 0.45
TraceMethod · 0.45
PlayEffectMethod · 0.45
AddPolyToSceneMethod · 0.45

Tested by

no test coverage detected