|
Vesper 0.5.1
Vesper is short form for the Latin word for "Bat", as Vesper is designed to be small, lightweight, and easily handle things like particles and flocking behaviors in accordance with the nature of bats. \n It is meant to be a particle simulation, VFX editor, and CAN be used secondarily as a small game engine. GitHub | Vesper Updates | Creator |
#include <ParticleSystem.h>
Classes | |
| struct | Particle |
Public Member Functions | |
| ParticleSystem () | |
| ParticleSystem (uint32_t maxParticles) | |
| void | OnUpdate (Timestep ts) |
| void | OnRender (OrthographicCamera &camera) |
| void | Emit (const ParticleProps &particleProps) |
| void | SetParticleProps (const ParticleProps &particleProps) |
Private Attributes | |
| std::vector< Particle > | m_ParticlePool |
| uint32_t | m_PoolIndex = 999 |
| ParticleProps | m_Props |
| struct Vesper::ParticleSystem::Particle |
| Vesper::ParticleSystem::ParticleSystem | ( | ) |
References m_PoolIndex.
| Vesper::ParticleSystem::ParticleSystem | ( | uint32_t | maxParticles | ) |
References m_PoolIndex.
| void Vesper::ParticleSystem::Emit | ( | const ParticleProps & | particleProps | ) |
References Vesper::ParticleSystem::Particle::Active, Vesper::Random::Float1(), Vesper::ParticleSystem::Particle::LifeRemaining, Vesper::ParticleProps::LifeTime, Vesper::ParticleSystem::Particle::LifeTime, Vesper::ParticleProps::LifetimeVariation, Vesper::ParticleProps::Rotation, Vesper::ParticleSystem::Particle::Rotation, Vesper::ParticleProps::RotationVariation, Vesper::ParticleProps::SizeBegin, Vesper::ParticleSystem::Particle::SizeBegin, Vesper::ParticleProps::SizeEnd, Vesper::ParticleSystem::Particle::SizeEnd, and Vesper::ParticleProps::SizeVariation.
| void Vesper::ParticleSystem::OnRender | ( | Vesper::OrthographicCamera & | camera | ) |
| void Vesper::ParticleSystem::OnUpdate | ( | Vesper::Timestep | ts | ) |
|
inline |
|
private |
|
private |
Referenced by ParticleSystem(), and ParticleSystem().
|
private |