mirror of
https://github.com/nillerusr/source-engine.git
synced 2026-08-12 03:39:10 +00:00
add source-sdk-2013
This commit is contained in:
+2
-20
@@ -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 )
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user