| 77 | } |
| 78 | |
| 79 | Tr2GpuParticleSystem::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 | |
| 106 | Tr2GpuParticleSystem::~Tr2GpuParticleSystem() |
| 107 | { |
nothing calls this directly
no test coverage detected