MCPcopy Create free account
hub / github.com/carbonengine/trinity / Tr2GpuParticleSystem

Method Tr2GpuParticleSystem

trinity/Particle/Tr2GpuParticleSystem.cpp:79–104  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

77}
78
79Tr2GpuParticleSystem::Tr2GpuParticleSystem( IRoot* ) :
80 m_clearRequested( true ),
81 m_maxParticles( DEFAULT_MAX_PARTICLES ),
82 m_emitRequests( 64, "Tr2GpuParticleSystem::m_emitRequests" ),
83 m_previousTime( -1 ),
84 m_enableEmit( true ),
85 m_enableUpdate( true ),
86 m_enableSort( true ),
87 m_enableRender( true ),
88 m_updateVisibleCount( false ),
89 m_visibleCount( 0 ),
90 m_liveTime( 0.f ),
91 m_turbulenceOffset( 0.f, 0.f, 0.f ),
92 m_turbulenceAnimation( 0.f, 0.f, 0.f )
93{
94 m_variableStore.CreateInstance();
95
96 InitializeBuffers();
97 RegisterVariables();
98 SetMaxParticles( m_maxParticles );
99
100 m_emitTimer.SetCaptureGpuTime( true );
101 m_updateTimer.SetCaptureGpuTime( true );
102 m_sortTimer.SetCaptureGpuTime( true );
103 m_renderTimer.SetCaptureGpuTime( true );
104}
105
106Tr2GpuParticleSystem::~Tr2GpuParticleSystem()
107{

Callers

nothing calls this directly

Calls 2

CreateInstanceMethod · 0.80
SetCaptureGpuTimeMethod · 0.45

Tested by

no test coverage detected