diff options
| author | Jørgen P. Tjernø <[email protected]> | 2013-12-02 19:31:46 -0800 |
|---|---|---|
| committer | Jørgen P. Tjernø <[email protected]> | 2013-12-02 19:46:31 -0800 |
| commit | f56bb35301836e56582a575a75864392a0177875 (patch) | |
| tree | de61ddd39de3e7df52759711950b4c288592f0dc /sp/src/game/client/particle_litsmokeemitter.h | |
| parent | Mark some more files as text. (diff) | |
| download | source-sdk-2013-f56bb35301836e56582a575a75864392a0177875.tar.xz source-sdk-2013-f56bb35301836e56582a575a75864392a0177875.zip | |
Fix line endings. WHAMMY.
Diffstat (limited to 'sp/src/game/client/particle_litsmokeemitter.h')
| -rw-r--r-- | sp/src/game/client/particle_litsmokeemitter.h | 154 |
1 files changed, 77 insertions, 77 deletions
diff --git a/sp/src/game/client/particle_litsmokeemitter.h b/sp/src/game/client/particle_litsmokeemitter.h index 013f7411..4c65cfeb 100644 --- a/sp/src/game/client/particle_litsmokeemitter.h +++ b/sp/src/game/client/particle_litsmokeemitter.h @@ -1,77 +1,77 @@ -//========= Copyright Valve Corporation, All rights reserved. ============//
-//
-// Purpose:
-//
-//=============================================================================//
-
-#ifndef PARTICLE_LITSMOKEEMITTER_H
-#define PARTICLE_LITSMOKEEMITTER_H
-#ifdef _WIN32
-#pragma once
-#endif
-
-
-#include "particles_simple.h"
-
-#include "tier0/memdbgon.h"
-
-//==================================================
-// CLitSmokeEmitter
-//==================================================
-
-class CLitSmokeEmitter : public CSimpleEmitter
-{
-public:
- CLitSmokeEmitter( const char *pDebugName );
-
- virtual void Update( float flTimeDelta );
- virtual void StartRender( VMatrix &effectMatrix );
- virtual void RenderParticles( CParticleRenderIterator *pIterator );
- virtual void SimulateParticles( CParticleSimulateIterator *pIterator );
-
- virtual void Init( const char *materialName, Vector sortOrigin );
-
- // Get the material we were initialized with.
- PMaterialHandle GetSmokeMaterial() const;
-
- // Color values are 0-1.
- virtual void SetDirectionalLight( Vector position, Vector color, float intensity );
- virtual void SetLight( Vector position, Vector color, float intensity );
-
- static CSmartPtr<CLitSmokeEmitter> Create( const char *pDebugName )
- {
- return new CLitSmokeEmitter( pDebugName );
- }
-
- CParticleSphereRenderer m_Renderer;
-
- class LitSmokeParticle : public Particle
- {
- public:
- Vector m_vecVelocity;
- byte m_uchColor[4];
- float m_flLifetime;
- float m_flDieTime;
- byte m_uchStartSize;
- byte m_uchEndSize;
- };
-
-private:
-
- CLitSmokeEmitter( const CLitSmokeEmitter & ); // not defined, not accessible
-
-private:
-
- bool m_bInitted;
- PMaterialHandle m_hSmokeMaterial;
-};
-
-
-inline PMaterialHandle CLitSmokeEmitter::GetSmokeMaterial() const
-{
- return m_hSmokeMaterial;
-}
-
-#include "tier0/memdbgoff.h"
-
-#endif // PARTICLE_LITSMOKEEMITTER_H
+//========= Copyright Valve Corporation, All rights reserved. ============// +// +// Purpose: +// +//=============================================================================// + +#ifndef PARTICLE_LITSMOKEEMITTER_H +#define PARTICLE_LITSMOKEEMITTER_H +#ifdef _WIN32 +#pragma once +#endif + + +#include "particles_simple.h" + +#include "tier0/memdbgon.h" + +//================================================== +// CLitSmokeEmitter +//================================================== + +class CLitSmokeEmitter : public CSimpleEmitter +{ +public: + CLitSmokeEmitter( const char *pDebugName ); + + virtual void Update( float flTimeDelta ); + virtual void StartRender( VMatrix &effectMatrix ); + virtual void RenderParticles( CParticleRenderIterator *pIterator ); + virtual void SimulateParticles( CParticleSimulateIterator *pIterator ); + + virtual void Init( const char *materialName, Vector sortOrigin ); + + // Get the material we were initialized with. + PMaterialHandle GetSmokeMaterial() const; + + // Color values are 0-1. + virtual void SetDirectionalLight( Vector position, Vector color, float intensity ); + virtual void SetLight( Vector position, Vector color, float intensity ); + + static CSmartPtr<CLitSmokeEmitter> Create( const char *pDebugName ) + { + return new CLitSmokeEmitter( pDebugName ); + } + + CParticleSphereRenderer m_Renderer; + + class LitSmokeParticle : public Particle + { + public: + Vector m_vecVelocity; + byte m_uchColor[4]; + float m_flLifetime; + float m_flDieTime; + byte m_uchStartSize; + byte m_uchEndSize; + }; + +private: + + CLitSmokeEmitter( const CLitSmokeEmitter & ); // not defined, not accessible + +private: + + bool m_bInitted; + PMaterialHandle m_hSmokeMaterial; +}; + + +inline PMaterialHandle CLitSmokeEmitter::GetSmokeMaterial() const +{ + return m_hSmokeMaterial; +} + +#include "tier0/memdbgoff.h" + +#endif // PARTICLE_LITSMOKEEMITTER_H |