#include <DustSprite.h>
Inheritance diagram for DustSprite:
Public Member Functions | |
| DustSprite (TankSprite *parent) | |
| Createa a dust object connected to the tank-sprite parent. | |
| virtual void | paint () |
| Draw this sprite on screen. | |
| virtual void | update () |
| Update this sprite's pysics and stuff. | |
Protected Member Functions | |
| void | resetParticle (int idx) |
Protected Attributes | |
| TankSprite * | tank |
| Particle | p [NUM_DUST_PARTICLES] |
| float | offset [3] |
| float | maxAge |
| DustSprite::DustSprite | ( | TankSprite * | parent | ) |
Createa a dust object connected to the tank-sprite parent.
| virtual void DustSprite::paint | ( | ) | [virtual] |
Draw this sprite on screen.
The paint method is allowed to change the model-view matrix and any pushable attributes.
Implements Sprite.
| void DustSprite::resetParticle | ( | int | idx | ) | [protected] |
| virtual void DustSprite::update | ( | ) | [virtual] |
Update this sprite's pysics and stuff.
Note that the update method should use the static dTime variable to check the time since last invokation. The caller is responsible for setting this variable to an apropriate value!
Implements Sprite.
float DustSprite::maxAge [protected] |
float DustSprite::offset[3] [protected] |
Particle DustSprite::p[NUM_DUST_PARTICLES] [protected] |
TankSprite* DustSprite::tank [protected] |
1.4.7