| 56 | */ |
| 57 | |
| 58 | ParticleSystem::ParticleSystem(uint numParticles, bool bUseVBO, bool bUseGL) |
| 59 | : m_bInitialized(false) |
| 60 | , m_bUseVBO(bUseVBO) |
| 61 | , m_numParticles(numParticles) |
| 62 | , m_particleRadius(0.1f) |
| 63 | , m_doDepthSort(false) |
| 64 | , m_timer(NULL) |
| 65 | , m_time(0.0f) |
| 66 | { |
| 67 | m_params.gravity = make_float3(0.0f, 0.0f, 0.0f); |
| 68 | m_params.globalDamping = 1.0f; |
| 69 | m_params.noiseSpeed = make_float3(0.0f, 0.0f, 0.0f); |
| 70 | |
| 71 | _initialize(numParticles, bUseGL); |
| 72 | } |
| 73 | |
| 74 | ParticleSystem::~ParticleSystem() |
| 75 | { |
nothing calls this directly
no test coverage detected