#include <Particles.h>
Public Member Functions | |
PSystem () | |
Standard constructor. | |
virtual | ~PSystem () |
Standard destructor. | |
virtual bool | init (LPDIRECT3DDEVICE9 device, const WCHAR *texFileName) |
Inits particle system. | |
virtual void | reset () |
Resets every particle to initial values. | |
virtual void | addParticle () |
Adds new particle. | |
virtual void | preRender () |
preRender sets particle rendering states and postRender returns them to previous state. | |
virtual void | Render () |
Renders particles vertex buffer on 3d device. | |
virtual void | postRender () |
preRender sets particle rendering states and postRender returns them to previous state. | |
Protected Member Functions | |
virtual void | removeDeadParticles () |
This function removes or RENEWS dead particles. |
This basic particle class provides functions for adding, updating, and rendering particles.
PSystem::PSystem | ( | void | ) |
Standard constructor.
PSystem::~PSystem | ( | void | ) | [virtual] |
Standard destructor.
bool PSystem::init | ( | LPDIRECT3DDEVICE9 | device, | |
const WCHAR * | texFileName | |||
) | [virtual] |
Inits particle system.
texFileName | texture of particles. |
void PSystem::reset | ( | ) | [virtual] |
Resets every particle to initial values.
void PSystem::addParticle | ( | ) | [virtual] |
Adds new particle.
void PSystem::preRender | ( | ) | [virtual] |
void PSystem::Render | ( | ) | [virtual] |
Renders particles vertex buffer on 3d device.
void PSystem::postRender | ( | ) | [virtual] |
void PSystem::removeDeadParticles | ( | ) | [protected, virtual] |
This function removes or RENEWS dead particles.