From f56bb35301836e56582a575a75864392a0177875 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B8rgen=20P=2E=20Tjern=C3=B8?= Date: Mon, 2 Dec 2013 19:31:46 -0800 Subject: Fix line endings. WHAMMY. --- mp/src/game/client/particlesphererenderer.cpp | 98 +++++++++++++-------------- 1 file changed, 49 insertions(+), 49 deletions(-) (limited to 'mp/src/game/client/particlesphererenderer.cpp') 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; +} -- cgit v1.2.3