![]() |
xyginext
0.2.0
Second generation of xygine game creation framework
|
Settings used by a particle emitter to initialise new particles. More...
#include <ParticleEmitter.hpp>
Public Member Functions | |
bool | loadFromFile (const std::string &, TextureResource &) |
bool | loadFromFile (const std::string &, ResourceHandler &) |
bool | saveToFile (const std::string &) |
Public Attributes | |
sf::BlendMode | blendmode = sf::BlendAlpha |
sf::Vector2f | gravity |
sf::Vector2f | initialVelocity = { 0.f, -100.f } |
float | spread = 0.f |
std::array< sf::Vector2f, 4 > | forces {} |
float | lifetime = 1.f |
float | lifetimeVariance = 0.f |
sf::Color | colour = sf::Color::White |
float | rotationSpeed = 0.f |
bool | randomInitialRotation = true |
float | scaleModifier = 0.f |
float | size = 10.f |
float | emitRate = 10.f |
<diameter of particle | |
sf::Uint32 | emitCount = 1 |
<particles per second | |
float | spawnRadius = 10.f |
<amount released at once | |
sf::Vector2f | spawnOffset |
sf::Int32 | releaseCount = 0 |
<initial spawn position is offset this much | |
sf::Texture * | texture = nullptr |
<number of particles released before stopping (0 for infinite) | |
std::string | texturePath |
Settings used by a particle emitter to initialise new particles.