Counter Strike : Global Offensive Source Code
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

46 lines
1.3 KiB

//===== Copyright © 1996-2007, Valve Corporation, All rights reserved. ======//
//
// Purpose: particle system code
//
//===========================================================================//
#include "tier0/platform.h"
#include "particles/particles.h"
// NOTE: This has to be the last file included!
#include "tier0/memdbgon.h"
//-----------------------------------------------------------------------------
// Forward declarations
//-----------------------------------------------------------------------------
void AddBuiltInParticleOperators( void );
void AddBuiltInParticleRenderers( void );
void AddBuiltInParticleInitializers( void );
void AddBuiltInParticleEmitters( void );
void AddBuiltInParticleForceGenerators( void );
void AddBuiltInParticleConstraints( void );
void CParticleSystemMgr::AddBuiltinSimulationOperators( void )
{
static bool s_DidAddSim = false;
if ( ! s_DidAddSim )
{
s_DidAddSim = true;
AddBuiltInParticleOperators();
AddBuiltInParticleInitializers();
AddBuiltInParticleEmitters();
AddBuiltInParticleForceGenerators();
AddBuiltInParticleConstraints();
}
}
void CParticleSystemMgr::AddBuiltinRenderingOperators( void )
{
static bool s_DidAddRenderers = false;
if ( ! s_DidAddRenderers )
{
s_DidAddRenderers = true;
AddBuiltInParticleRenderers();
}
}