#include <C4Particles.h>
Classes | |
| struct | Vertex |
Public Member Functions | |
| void | SetOffset (float x, float y) |
| void | SetPointer (Vertex *startingVertex, bool initial=false) |
| void | SetColor (float r, float g, float b, float a=1.0f) |
| void | SetPosition (float x, float y, float size, float rotation=0.f, float stretch=1.f) |
| void | SetPhase (int phase, C4ParticleDef *sourceDef) |
| DrawingData () | |
Public Attributes | |
| Vertex * | vertices |
| int | phase |
| float | currentStretch |
| float | originalSize |
| float | sizeX |
| float | sizeY |
| float | aspect |
| float | offsetX |
| float | offsetY |
Static Public Attributes | |
| static const int | vertexCountPerParticle |
Definition at line 239 of file C4Particles.h.
| struct C4Particle::DrawingData::Vertex |
Definition at line 243 of file C4Particles.h.
| Class Members | ||
|---|---|---|
| float | alpha | |
| float | b | |
| float | g | |
| float | r | |
| float | u | |
| float | v | |
| float | x | |
| float | y | |
|
inline |
Definition at line 304 of file C4Particles.h.
|
inline |
Definition at line 290 of file C4Particles.h.
References a, C4Particle::DrawingData::Vertex::alpha, b, C4Particle::DrawingData::Vertex::b, C4Particle::DrawingData::Vertex::g, C4Particle::DrawingData::Vertex::r, and vertices.
Referenced by C4ParticleSystem::Create(), C4Particle::Exec(), and SetPointer().
|
inline |
Definition at line 267 of file C4Particles.h.
References offsetX, and offsetY.
Referenced by C4ParticleSystem::Create().
| void C4Particle::DrawingData::SetPhase | ( | int | phase, |
| C4ParticleDef * | sourceDef | ||
| ) |
Definition at line 189 of file C4Particles.cpp.
References C4ParticleDef::Length, and C4ParticleDef::PhasesX.
Referenced by C4ParticleSystem::Create(), and C4Particle::Exec().
|
inline |
Definition at line 273 of file C4Particles.h.
References phase, SetColor(), C4Particle::DrawingData::Vertex::u, C4Particle::DrawingData::Vertex::v, and vertices.
Referenced by C4ParticleChunk::AddNewParticle(), and C4ParticleChunk::ReserveSpace().
| void C4Particle::DrawingData::SetPosition | ( | float | x, |
| float | y, | ||
| float | size, | ||
| float | rotation = 0.f, |
||
| float | stretch = 1.f |
||
| ) |
Definition at line 152 of file C4Particles.cpp.
References aspect, currentStretch, offsetX, offsetY, originalSize, sizeX, sizeY, vertices, C4Particle::DrawingData::Vertex::x, and C4Particle::DrawingData::Vertex::y.
Referenced by C4Particle::Exec(), and C4Particle::SetPosition().
| float C4Particle::DrawingData::aspect |
Definition at line 263 of file C4Particles.h.
Referenced by C4ParticleSystem::Create(), and SetPosition().
| float C4Particle::DrawingData::currentStretch |
Definition at line 260 of file C4Particles.h.
Referenced by SetPosition().
| float C4Particle::DrawingData::offsetX |
Definition at line 265 of file C4Particles.h.
Referenced by SetOffset(), and SetPosition().
| float C4Particle::DrawingData::offsetY |
Definition at line 265 of file C4Particles.h.
Referenced by SetOffset(), and SetPosition().
| float C4Particle::DrawingData::originalSize |
Definition at line 261 of file C4Particles.h.
Referenced by SetPosition().
| int C4Particle::DrawingData::phase |
Definition at line 258 of file C4Particles.h.
Referenced by C4Particle::Exec(), and SetPointer().
| float C4Particle::DrawingData::sizeX |
Definition at line 262 of file C4Particles.h.
Referenced by SetPosition().
| float C4Particle::DrawingData::sizeY |
Definition at line 262 of file C4Particles.h.
Referenced by SetPosition().
|
static |
Definition at line 241 of file C4Particles.h.
Referenced by C4ParticleChunk::AddNewParticle(), and C4ParticleChunk::ReserveSpace().
| Vertex* C4Particle::DrawingData::vertices |
Definition at line 256 of file C4Particles.h.
Referenced by SetColor(), SetPointer(), and SetPosition().