예제 #1
0
파일: Particle.cpp 프로젝트: Cathanos/Thor
float getRemainingRatio(const Particle& particle)
{
	return getRemainingLifetime(particle) / getTotalLifetime(particle);
}
예제 #2
0
파일: Particle.cpp 프로젝트: Cathanos/Thor
float getElapsedRatio(const Particle& particle)
{
	return getElapsedLifetime(particle) / getTotalLifetime(particle);
}
예제 #3
0
파일: particle.cpp 프로젝트: Ornito/ODFAEG
 float getRemainingRatio(const Particle& particle)
 {
     return (getRemainingLifetime(particle).asSeconds() / getTotalLifetime(particle).asSeconds());
 }
예제 #4
0
파일: Particle.cpp 프로젝트: Cathanos/Thor
sf::Time getRemainingLifetime(const Particle& particle)
{
	return getTotalLifetime(particle) - getElapsedLifetime(particle);
}
예제 #5
0
파일: particle.cpp 프로젝트: Ornito/ODFAEG
 float getElapsedRatio(const Particle& particle)
 {
     return (getElapsedLifetime(particle).asSeconds() / getTotalLifetime(particle).asSeconds());
 }