#include <C4Particles.h>
Public Member Functions | |
C4ParticleSystem () | |
~C4ParticleSystem () | |
void | CalculateNextStep () |
void | Clear () |
void | DrawGlobalParticles (C4TargetFacet cgo) |
C4ParticleList * | GetGlobalParticles () |
C4ParticleList * | GetNewParticleList (C4Object *forTarget=nullptr) |
void | ReleaseParticleList (C4ParticleList *first, C4ParticleList *second=nullptr) |
GLuint | GetIBO (size_t forParticleAmount) |
void | Create (C4ParticleDef *of_def, C4ParticleValueProvider &x, C4ParticleValueProvider &y, C4ParticleValueProvider &speedX, C4ParticleValueProvider &speedY, C4ParticleValueProvider &lifetime, C4PropList *properties, int amount=1, C4Object *object=nullptr) |
void | ClearAllParticles () |
Public Attributes | |
C4ParticleSystemDefinitionList | definitions |
Friends | |
class | CalculationThread |
class | C4ParticleList |
Definition at line 444 of file C4Particles.h.
C4ParticleSystem::C4ParticleSystem | ( | ) |
Definition at line 1259 of file C4Particles.cpp.
C4ParticleSystem::~C4ParticleSystem | ( | ) |
Definition at line 1267 of file C4Particles.cpp.
References CalculateNextStep(), and Clear().
|
inline |
Definition at line 481 of file C4Particles.h.
References CStdEvent::Set().
Referenced by C4Game::Execute(), and ~C4ParticleSystem().
void C4ParticleSystem::Clear | ( | ) |
Definition at line 1477 of file C4Particles.cpp.
References C4ParticleSystemDefinitionList::Clear(), ClearAllParticles(), and definitions.
Referenced by C4Game::Clear(), and ~C4ParticleSystem().
void C4ParticleSystem::ClearAllParticles | ( | ) |
Definition at line 1490 of file C4Particles.cpp.
References CStdCSec::Enter(), and CStdCSec::Leave().
Referenced by Clear(), C4Game::LoadScenarioSection(), and C4Game::ReloadParticle().
void C4ParticleSystem::Create | ( | C4ParticleDef * | of_def, |
C4ParticleValueProvider & | x, | ||
C4ParticleValueProvider & | y, | ||
C4ParticleValueProvider & | speedX, | ||
C4ParticleValueProvider & | speedY, | ||
C4ParticleValueProvider & | lifetime, | ||
C4PropList * | properties, | ||
int | amount = 1 , |
||
C4Object * | object = nullptr |
||
) |
Definition at line 1339 of file C4Particles.cpp.
References C4ParticleChunk::AddNewParticle(), C4ParticleDef::Aspect, C4Particle::DrawingData::aspect, C4ParticleProperties::attachment, C4Object::BackParticles, C4ParticleProperties::blitMode, C4ATTACH_Back, C4ATTACH_Front, C4ATTACH_MoveRelative, C4ParticleProperties::colorAlpha, C4ParticleProperties::colorB, C4ParticleProperties::colorG, C4ParticleProperties::colorR, C4Particle::currentSpeedX, C4Particle::currentSpeedY, C4Particle::drawingData, C4ParticleProperties::Floatify(), C4ParticleValueProvider::Floatify(), C4Object::FrontParticles, C4ParticleList::GetFittingParticleChunk(), GetNewParticleList(), C4ParticleValueProvider::GetValue(), C4Particle::lifetime, C4ParticleList::Lock(), C4ParticleProperties::phase, C4Particle::properties, C4ParticleChunk::ReserveSpace(), C4ParticleProperties::Set(), C4Particle::DrawingData::SetColor(), C4Particle::DrawingData::SetOffset(), C4Particle::DrawingData::SetPhase(), C4Particle::SetPosition(), C4Particle::startingLifetime, and C4ParticleList::Unlock().
|
inline |
Definition at line 489 of file C4Particles.h.
References C4ParticleList::Draw().
Referenced by C4Viewport::Draw().
|
inline |
Definition at line 496 of file C4Particles.h.
GLuint C4ParticleSystem::GetIBO | ( | size_t | forParticleAmount | ) |
Definition at line 1439 of file C4Particles.cpp.
Referenced by C4ParticleChunk::Draw().
C4ParticleList * C4ParticleSystem::GetNewParticleList | ( | C4Object * | forTarget = nullptr | ) |
Definition at line 1300 of file C4Particles.cpp.
References CStdCSec::Enter(), and CStdCSec::Leave().
Referenced by Create().
void C4ParticleSystem::ReleaseParticleList | ( | C4ParticleList * | first, |
C4ParticleList * | second = nullptr |
||
) |
Definition at line 1316 of file C4Particles.cpp.
References CStdCSec::Enter(), and CStdCSec::Leave().
Referenced by C4Object::ClearParticleLists().
|
friend |
Definition at line 525 of file C4Particles.h.
|
friend |
Definition at line 454 of file C4Particles.h.
C4ParticleSystemDefinitionList C4ParticleSystem::definitions |
Definition at line 510 of file C4Particles.h.
Referenced by C4ParticleDef::C4ParticleDef(), Clear(), C4ParticleDef::Load(), C4Game::ReloadParticle(), and C4ParticleDef::~C4ParticleDef().