#include <Particles.h>
Public Member Functions | |
CPGrass (int numParticles, float size, float radiusmin, float radiusmax, int ringpart) | |
Constructor initializes grass. | |
void | resetParticle (Attribute *attribute) |
Resets particle to initial position. | |
void | Update (float timeDelta, bool slow, bool follow) |
Updates particle position. Grass is not moving so this functino is empty. | |
void | preRender () |
preRender sets rendering device parameters for particles. | |
void | postRender () |
postRender sets original rendering device parameters. |
Grass on the field is displayed with particle system using this class.
CPGrass::CPGrass | ( | int | numParticles, | |
float | size, | |||
float | min_radius, | |||
float | max_radius, | |||
int | ringpart | |||
) |
Constructor initializes grass.
void CPGrass::resetParticle | ( | Attribute * | attribute | ) | [virtual] |
void CPGrass::Update | ( | float | timeDelta, | |
bool | slow, | |||
bool | follow | |||
) | [virtual] |
Updates particle position. Grass is not moving so this functino is empty.
Implements PSystem.
void CPGrass::preRender | ( | ) | [virtual] |
preRender sets rendering device parameters for particles.
Reimplemented from PSystem.
void CPGrass::postRender | ( | ) | [virtual] |
postRender sets original rendering device parameters.
Reimplemented from PSystem.