aboutsummaryrefslogtreecommitdiff
path: root/mp/src/game/client/particlesphererenderer.cpp
diff options
context:
space:
mode:
authorJørgen P. Tjernø <[email protected]>2013-12-02 19:31:46 -0800
committerJørgen P. Tjernø <[email protected]>2013-12-02 19:46:31 -0800
commitf56bb35301836e56582a575a75864392a0177875 (patch)
treede61ddd39de3e7df52759711950b4c288592f0dc /mp/src/game/client/particlesphererenderer.cpp
parentMark some more files as text. (diff)
downloadsource-sdk-2013-f56bb35301836e56582a575a75864392a0177875.tar.xz
source-sdk-2013-f56bb35301836e56582a575a75864392a0177875.zip
Fix line endings. WHAMMY.
Diffstat (limited to 'mp/src/game/client/particlesphererenderer.cpp')
-rw-r--r--mp/src/game/client/particlesphererenderer.cpp98
1 files changed, 49 insertions, 49 deletions
diff --git a/mp/src/game/client/particlesphererenderer.cpp b/mp/src/game/client/particlesphererenderer.cpp
index 9f32dfe1..f995ee13 100644
--- a/mp/src/game/client/particlesphererenderer.cpp
+++ b/mp/src/game/client/particlesphererenderer.cpp
@@ -1,49 +1,49 @@
-//========= Copyright Valve Corporation, All rights reserved. ============//
-//
-// Purpose:
-//
-// $NoKeywords: $
-//=============================================================================//
-#include "cbase.h"
-#include "particlesphererenderer.h"
-#include "materialsystem/imaterialvar.h"
-
-// memdbgon must be the last include file in a .cpp file!!!
-#include "tier0/memdbgon.h"
-
-CParticleSphereRenderer::CParticleSphereRenderer()
-{
- m_vBaseColor.Init();
- memset( &m_AmbientLight, 0, sizeof( m_AmbientLight ) );
- memset( &m_DirectionalLight, 0, sizeof( m_DirectionalLight ) );
-
- m_bUsingPixelShaders = false;
- m_iLastTickStartRenderCalled = -1;
- m_pParticleMgr = NULL;
-}
-
-
-void CParticleSphereRenderer::Init( CParticleMgr *pParticleMgr, IMaterial *pMaterial )
-{
- m_pParticleMgr = pParticleMgr;
-
- // Figure out how we need to draw.
- bool bFound = false;
- IMaterialVar *pVar = pMaterial->FindVar( "$USINGPIXELSHADER", &bFound, false );
- if( bFound && pVar && pVar->GetIntValue() )
- m_bUsingPixelShaders = true;
- else
- m_bUsingPixelShaders = false;
-}
-
-
-void CParticleSphereRenderer::StartRender( VMatrix &effectMatrix )
-{
- // We're about to be rendered.. set our directional lighting parameters for this particle system.
- if ( m_pParticleMgr )
- {
- m_pParticleMgr->SetDirectionalLightInfo( m_DirectionalLight );
- }
-
- m_iLastTickStartRenderCalled = gpGlobals->tickcount;
-}
+//========= Copyright Valve Corporation, All rights reserved. ============//
+//
+// Purpose:
+//
+// $NoKeywords: $
+//=============================================================================//
+#include "cbase.h"
+#include "particlesphererenderer.h"
+#include "materialsystem/imaterialvar.h"
+
+// memdbgon must be the last include file in a .cpp file!!!
+#include "tier0/memdbgon.h"
+
+CParticleSphereRenderer::CParticleSphereRenderer()
+{
+ m_vBaseColor.Init();
+ memset( &m_AmbientLight, 0, sizeof( m_AmbientLight ) );
+ memset( &m_DirectionalLight, 0, sizeof( m_DirectionalLight ) );
+
+ m_bUsingPixelShaders = false;
+ m_iLastTickStartRenderCalled = -1;
+ m_pParticleMgr = NULL;
+}
+
+
+void CParticleSphereRenderer::Init( CParticleMgr *pParticleMgr, IMaterial *pMaterial )
+{
+ m_pParticleMgr = pParticleMgr;
+
+ // Figure out how we need to draw.
+ bool bFound = false;
+ IMaterialVar *pVar = pMaterial->FindVar( "$USINGPIXELSHADER", &bFound, false );
+ if( bFound && pVar && pVar->GetIntValue() )
+ m_bUsingPixelShaders = true;
+ else
+ m_bUsingPixelShaders = false;
+}
+
+
+void CParticleSphereRenderer::StartRender( VMatrix &effectMatrix )
+{
+ // We're about to be rendered.. set our directional lighting parameters for this particle system.
+ if ( m_pParticleMgr )
+ {
+ m_pParticleMgr->SetDirectionalLightInfo( m_DirectionalLight );
+ }
+
+ m_iLastTickStartRenderCalled = gpGlobals->tickcount;
+}