initialize particle system
| 155 | |
| 156 | // initialize particle system |
| 157 | void initParticles(int numParticles, bool bUseVBO, bool bUseGL) |
| 158 | { |
| 159 | psystem = new ParticleSystem(numParticles, bUseVBO, bUseGL); |
| 160 | psystem->reset(ParticleSystem::CONFIG_RANDOM); |
| 161 | |
| 162 | if (bUseVBO) { |
| 163 | renderer = new SmokeRenderer(numParticles); |
| 164 | renderer->setLightTarget(vec3f(0.0, 1.0, 0.0)); |
| 165 | |
| 166 | sdkCreateTimer(&timer); |
| 167 | } |
| 168 | } |
| 169 | |
| 170 | void cleanup() |
| 171 | { |
no test coverage detected