diff options
| author | FluorescentCIAAfricanAmerican <[email protected]> | 2020-04-22 12:56:21 -0400 |
|---|---|---|
| committer | FluorescentCIAAfricanAmerican <[email protected]> | 2020-04-22 12:56:21 -0400 |
| commit | 3bf9df6b2785fa6d951086978a3e66f49427166a (patch) | |
| tree | 2c0f1f0c63c4832882bc93814ebd2c2b1c6224e5 /game/client/particles_localspace.h | |
| download | archived-source-engine-2018-hl2-src-master.tar.xz archived-source-engine-2018-hl2-src-master.zip | |
Diffstat (limited to 'game/client/particles_localspace.h')
| -rw-r--r-- | game/client/particles_localspace.h | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/game/client/particles_localspace.h b/game/client/particles_localspace.h new file mode 100644 index 0000000..8b2a5a4 --- /dev/null +++ b/game/client/particles_localspace.h @@ -0,0 +1,51 @@ +//========= Copyright Valve Corporation, All rights reserved. ============// +// +// Purpose: +// +//=============================================================================// + +#ifndef PARTICLES_LOCALSPACE_H +#define PARTICLES_LOCALSPACE_H +#ifdef _WIN32 +#pragma once +#endif + +#include "particles_simple.h" + +#define FLE_VIEWMODEL 0x00000001 + +class CLocalSpaceEmitter : public CSimpleEmitter +{ +public: + + DECLARE_CLASS( CLocalSpaceEmitter, CParticleEffect ); + + static CSmartPtr<CLocalSpaceEmitter> Create( const char *pDebugName, ClientEntityHandle_t hEntity, int nAttachment, int flags = 0 ); + + virtual void RenderParticles( CParticleRenderIterator *pIterator ); + virtual void SimulateParticles( CParticleSimulateIterator *pIterator ); + + virtual void SetupTransformMatrix( void ); + virtual void Update( float flTimeDelta ); + + const matrix3x4_t& GetTransformMatrix() const; + +protected: + + CLocalSpaceEmitter( const char *pDebugName ); + + ClientEntityHandle_t m_hEntity; + int m_nAttachment; + int m_fFlags; + +private: + + CLocalSpaceEmitter( const CLocalSpaceEmitter & ); // not defined, not accessible + + // This is stored in the ParticleEffectBinding now. + //matrix3x4_t m_matTransform; + + //FIXME: Bones here as well... +}; + +#endif // PARTICLES_LOCALSPACE_H |