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/fx_fleck.h | |
| download | archived-source-engine-2018-hl2-src-master.tar.xz archived-source-engine-2018-hl2-src-master.zip | |
Diffstat (limited to 'game/client/fx_fleck.h')
| -rw-r--r-- | game/client/fx_fleck.h | 63 |
1 files changed, 63 insertions, 0 deletions
diff --git a/game/client/fx_fleck.h b/game/client/fx_fleck.h new file mode 100644 index 0000000..bd9396b --- /dev/null +++ b/game/client/fx_fleck.h @@ -0,0 +1,63 @@ +//========= Copyright Valve Corporation, All rights reserved. ============// +// +// Purpose: +// +// $Workfile: $ +// $Date: $ +// +//----------------------------------------------------------------------------- +// $Log: $ +// +// $NoKeywords: $ +//=============================================================================// + +#if !defined( FXFLECKS_H ) +#define FXFLECKS_H +#ifdef _WIN32 +#pragma once +#endif + +#include "particles_simple.h" +#include "particlemgr.h" +#include "particle_collision.h" + +// FleckParticle + +class FleckParticle : public Particle +{ +public: + Vector m_vecVelocity; + float m_flRoll; + float m_flRollDelta; + float m_flDieTime; // How long it lives for. + float m_flLifetime; // How long it has been alive for so far. + byte m_uchColor[3]; + byte m_uchSize; +}; + +// +// CFleckParticles +// + +class CFleckParticles : public CSimpleEmitter +{ +public: + + CFleckParticles( const char *pDebugName ); + ~CFleckParticles(); + static CSmartPtr<CFleckParticles> Create( const char *pDebugName, const Vector &vCenter, const Vector &extents ); + + virtual void RenderParticles( CParticleRenderIterator *pIterator ); + virtual void SimulateParticles( CParticleSimulateIterator *pIterator ); + + //Setup for point emission + virtual void Setup( const Vector &origin, const Vector *direction, float angularSpread, float minSpeed, float maxSpeed, float gravity, float dampen, int flags = 0 ); + + CParticleCollision m_ParticleCollision; + + CFleckParticles *m_pNextParticleSystem; +private: + CFleckParticles( const CFleckParticles & ); // not defined, not accessible +}; + +#endif //FXFLECKS_H
\ No newline at end of file |