#include <Particles.h>
Public Member Functions | |
CSmoke (int numParticles) | |
Standard constructor. | |
void | resetParticle (Attribute *attribute) |
Resets particle to initial position. | |
void | Update (float timeDelta, bool slow, bool follow) |
Moves particle one frame. | |
void | preRender () |
preRender sets rendering device parameters for particles. | |
void | postRender () |
postRender sets original rendering device parameters. | |
void | puff (D3DXVECTOR3 location, D3DCOLOR color) |
Emit particles from the source point. | |
bool | checkHit (D3DXVECTOR3 position, float radius) |
checks if object is within the smoke effect. |
Smoke particles are radiated from center all around, like a slow explosion.
CSmoke::CSmoke | ( | int | numParticles | ) |
Standard constructor.
void CSmoke::resetParticle | ( | Attribute * | attribute | ) | [virtual] |
void CSmoke::Update | ( | float | timeDelta, | |
bool | trt, | |||
bool | trt2 | |||
) | [virtual] |
void CSmoke::preRender | ( | ) | [virtual] |
preRender sets rendering device parameters for particles.
Reimplemented from PSystem.
void CSmoke::postRender | ( | ) | [virtual] |
postRender sets original rendering device parameters.
Reimplemented from PSystem.
void CSmoke::puff | ( | D3DXVECTOR3 | location, | |
D3DCOLOR | color | |||
) |
Emit particles from the source point.
bool CSmoke::checkHit | ( | D3DXVECTOR3 | position, | |
float | radius | |||
) |
checks if object is within the smoke effect.