Team Fortress 2 Source Code as on 22/4/2020
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.

42 lines
1.2 KiB

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