#include <smoke.h>
Public Member Functions | |
Smoke () | |
Constructor. | |
void | clear () |
Clears all particles. | |
void | createSmoke (vector2 &start, vector2 &velocity, int n) |
Creates new smoke particles. | |
void | doPhysics (component timestep) |
Performs a step in the smoke particle simulation. | |
void | draw () |
Draws the smoke particles. | |
Public Attributes | |
int | textureWidth |
The dimensions of the texture image. | |
int | textureHeight |
The dimensions of the texture image. | |
unsigned char * | image |
The texture image. |
|
Constructor. Loads all needed textures. |
|
Creates new smoke particles.
|
|
Performs a step in the smoke particle simulation.
|