aboutsummaryrefslogtreecommitdiff
path: root/mp/src/game/client/particlemgr.h
diff options
context:
space:
mode:
authorJohn Schoenick <[email protected]>2015-09-09 18:35:41 -0700
committerJohn Schoenick <[email protected]>2015-09-09 18:35:41 -0700
commit0d8dceea4310fde5706b3ce1c70609d72a38efdf (patch)
treec831ef32c2c801a5c5a80401736b52c7b5a528ec /mp/src/game/client/particlemgr.h
parentUpdated the SDK with the latest code from the TF and HL2 branches. (diff)
downloadsource-sdk-2013-master.tar.xz
source-sdk-2013-master.zip
Updated the SDK with the latest code from the TF and HL2 branches.HEADmaster
Diffstat (limited to 'mp/src/game/client/particlemgr.h')
-rw-r--r--mp/src/game/client/particlemgr.h12
1 files changed, 10 insertions, 2 deletions
diff --git a/mp/src/game/client/particlemgr.h b/mp/src/game/client/particlemgr.h
index 3214a55f..d4537f35 100644
--- a/mp/src/game/client/particlemgr.h
+++ b/mp/src/game/client/particlemgr.h
@@ -236,6 +236,13 @@ public:
IMaterial *m_pMaterial;
};
+// Particle simulation list, used to determine what particles to simulate and how.
+struct ParticleSimListEntry_t
+{
+ CNewParticleEffect* m_pNewParticleEffect;
+ bool m_bBoundingBoxOnly;
+};
+
//-----------------------------------------------------------------------------
// interface IParticleEffect:
@@ -715,8 +722,9 @@ private:
const CViewSetup& view, const VMatrix &worldToPixels, float flFocalDist );
bool RetireParticleCollections( CParticleSystemDefinition* pDef, int nCount, RetireInfo_t *pInfo, float flScreenArea, float flMaxTotalArea );
- void BuildParticleSimList( CUtlVector< CNewParticleEffect* > &list );
- bool EarlyRetireParticleSystems( int nCount, CNewParticleEffect **ppEffects );
+
+ void BuildParticleSimList( CUtlVector< ParticleSimListEntry_t > &list );
+ bool EarlyRetireParticleSystems( int nCount, ParticleSimListEntry_t *ppEffects );
static int RetireSort( const void *p1, const void *p2 );
private: