add source-sdk-2013

This commit is contained in:
nillerusr
2022-03-01 23:00:42 +03:00
parent 88b8830e8b
commit edc8d6c584
3288 changed files with 3731 additions and 1062455 deletions
+2 -20
View File
@@ -13,21 +13,11 @@
// memdbgon must be the last include file in a .cpp file!!!
#include "tier0/memdbgon.h"
static const char g_EffectName[] = "Quad";
CFXQuad::CFXQuad( const FXQuadData_t &data )
: CClientSideEffect( g_EffectName )
: CClientSideEffect( "Quad" )
{
m_FXData = data;
if ( data.m_pMaterial != NULL )
{
// If we've got a material, use that as our effectname instead of just "Quad".
// This should hopefully help narrow down messages like "No room for effect Quad".
const char *szMaterialName = data.m_pMaterial->GetName();
if ( szMaterialName )
SetEffectName( szMaterialName );
}
}
CFXQuad::~CFXQuad( void )
@@ -72,12 +62,6 @@ void CFXQuad::Draw( double frametime )
float alpha = m_FXData.m_flStartAlpha + ( ( m_FXData.m_flEndAlpha - m_FXData.m_flStartAlpha ) * alphaTimePerc );
alpha = clamp( alpha, 0.0f, 1.0f );
// PASSTIME don't bother if alpha is 0
if ( alpha == 0 )
{
return;
}
CMatRenderContextPtr pRenderContext( materials );
@@ -168,8 +152,6 @@ bool CFXQuad::IsActive( void )
//-----------------------------------------------------------------------------
void CFXQuad::Destroy( void )
{
SetEffectName( g_EffectName );
//Release the material
if ( m_FXData.m_pMaterial != NULL )
{