#include <ImgParticle.h>
Inheritance diagram for ParticleSystems::ImgParticle:
Public Member Functions | |
ImgParticle (int sysId, Solver *sol, Texture *text) | |
The minimal Constructor. | |
ImgParticle (int sysId, Solver *sol, GraphicsLib::Point3 pos, GraphicsLib::Vector vel, GraphicsLib::Colour c, GraphicsLib::Colour fc, GLfloat size, GLfloat fs, GLfloat maxLife, Texture *text) | |
The main Constructor. | |
virtual | ~ImgParticle () |
The Destructor. | |
virtual void | draw (void) |
A virtual Function. | |
virtual void | update (void) |
A virtual Function. | |
virtual bool | isDead (void) |
A virtual Function. | |
Public Attributes | |
Texture * | texture |
A public Variable. | |
Private Attributes | |
unsigned int | TextureID |
A private Variable. |
The ImgParticle Class is a Subclass of the Particle Class. It extends the Particle Class in order to be able to texture a Particle with a Texture.
Definition at line 29 of file ImgParticle.h.
|
The minimal Constructor. This Constructor only takes the ParticleSystem ID, the Solver and the Textureof a Particle.
Definition at line 15 of file ImgParticle.cpp. References texture. |
|
The main Constructor. This Constructor is the main Constructor for a ImgParticle. It sets the most important attributes of a ImgParticle.
Definition at line 19 of file ImgParticle.cpp. References texture. |
|
The Destructor. Destructs the ImgParticle Definition at line 32 of file ImgParticle.cpp. |
|
A virtual Function. Draws the ImgParticle Implements ParticleSystems::Particle. Definition at line 35 of file ImgParticle.cpp. |
|
A virtual Function. Returns true if the ImgParticle is dead
Implements ParticleSystems::Particle. Definition at line 106 of file ImgParticle.cpp. |
|
A virtual Function. Updates the ImgParticles attributes Implements ParticleSystems::Particle. Definition at line 84 of file ImgParticle.cpp. References ParticleSystems::Solver::nextStep(). |
|
A public Variable. The Pointer to the Texture for the ImgParticle Definition at line 98 of file ImgParticle.h. Referenced by ImgParticle(). |
|
A private Variable. The TextureID needed for binding the Texture Definition at line 104 of file ImgParticle.h. |