Initialize CParticleGlobals static vars

Former-commit-id: 97b330aa75
This commit is contained in:
Phillip Stephens 2023-01-14 02:42:15 -08:00
parent cf5562d509
commit a01c27ca3a
2 changed files with 12 additions and 12 deletions

View File

@ -1,15 +1,15 @@
#include "Kyoto/Particles/CParticleGlobals.hpp" #include "Kyoto/Particles/CParticleGlobals.hpp"
int CParticleGlobals::mParticleLifetime; int CParticleGlobals::mParticleLifetime = 0.f;
float CParticleGlobals::mParticleLifetimeReal; float CParticleGlobals::mParticleLifetimeReal = 0.f;
int CParticleGlobals::mEmitterTime; int CParticleGlobals::mEmitterTime = 0;
float CParticleGlobals::mEmitterTimeReal; float CParticleGlobals::mEmitterTimeReal = 0.f;
int CParticleGlobals::mParticleLifetimePercentage; int CParticleGlobals::mParticleLifetimePercentage = 0;
float CParticleGlobals::mParticleLifetimePercentageReal; float CParticleGlobals::mParticleLifetimePercentageReal = 0.f;
float CParticleGlobals::mParticleLifetimePercentageRemainder; float CParticleGlobals::mParticleLifetimePercentageRemainder = 0.f;
CElementGen::CParticle* CParticleGlobals::mCurrentParticle; CElementGen::CParticle* CParticleGlobals::mCurrentParticle = nullptr;
float* CParticleGlobals::mParticleAccessParameters; float* CParticleGlobals::mParticleAccessParameters = nullptr;
CParticleGlobals::SParticleSystem* CParticleGlobals::mCurrentParticleSystem; CParticleGlobals::SParticleSystem* CParticleGlobals::mCurrentParticleSystem = nullptr;
void CParticleGlobals::SetParticleLifetime(int lifetime) { void CParticleGlobals::SetParticleLifetime(int lifetime) {
mParticleLifetime = lifetime; mParticleLifetime = lifetime;