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

  1. //===== Copyright � 1996-2007, Valve Corporation, All rights reserved. ======//
  2. //
  3. // Purpose: particle system code
  4. //
  5. //===========================================================================//
  6. #include "tier0/platform.h"
  7. #include "particles/particles.h"
  8. // NOTE: This has to be the last file included!
  9. #include "tier0/memdbgon.h"
  10. //-----------------------------------------------------------------------------
  11. // Forward declarations
  12. //-----------------------------------------------------------------------------
  13. void AddBuiltInParticleOperators( void );
  14. void AddBuiltInParticleRenderers( void );
  15. void AddBuiltInParticleInitializers( void );
  16. void AddBuiltInParticleEmitters( void );
  17. void AddBuiltInParticleForceGenerators( void );
  18. void AddBuiltInParticleConstraints( void );
  19. void CParticleSystemMgr::AddBuiltinSimulationOperators( void )
  20. {
  21. static bool s_DidAddSim = false;
  22. if ( ! s_DidAddSim )
  23. {
  24. s_DidAddSim = true;
  25. AddBuiltInParticleOperators();
  26. AddBuiltInParticleInitializers();
  27. AddBuiltInParticleEmitters();
  28. AddBuiltInParticleForceGenerators();
  29. AddBuiltInParticleConstraints();
  30. }
  31. }
  32. void CParticleSystemMgr::AddBuiltinRenderingOperators( void )
  33. {
  34. static bool s_DidAddRenderers = false;
  35. if ( ! s_DidAddRenderers )
  36. {
  37. s_DidAddRenderers = true;
  38. AddBuiltInParticleRenderers();
  39. }
  40. }