| 77 | } |
| 78 | |
| 79 | void Particles::SetNumActive(uint32_t numActive) |
| 80 | { |
| 81 | uint32_t numParticles = static_cast<uint32_t>(mPositionSize.size()); |
| 82 | if (numActive <= numParticles) |
| 83 | { |
| 84 | mNumActive = numActive; |
| 85 | } |
| 86 | else |
| 87 | { |
| 88 | mNumActive = numParticles; |
| 89 | } |
| 90 | |
| 91 | mVBuffer->SetNumActiveElements(4 * mNumActive); |
| 92 | mIBuffer->SetNumActiveElements(6 * mNumActive); |
| 93 | } |
| 94 | |
| 95 | void Particles::GenerateParticles(std::shared_ptr<Camera> const& camera) |
| 96 | { |
nothing calls this directly
no test coverage detected