#include <particle.h>
|
| Particle (const Point &pos, const Size &startSize, const Size &finalSize, const PointF &velocity, const PointF &acceleration, float duration, float ignorePhysicsAfter, const std::vector< Color > &colors, const std::vector< float > &colorsStops, Painter::CompositionMode compositionMode=Painter::CompositionMode_Normal, TexturePtr texture=nullptr) |
|
void | render () |
|
void | update (float elapsedTime) |
|
bool | hasFinished () |
|
PointF | getPosition () |
|
PointF | getVelocity () |
|
void | setPosition (const PointF &position) |
|
void | setVelocity (const PointF &velocity) |
|
| shared_object () |
|
virtual | ~shared_object () |
|
void | add_ref () |
|
void | dec_ref () |
|
refcount_t | ref_count () |
|
template<typename T > |
stdext::shared_object_ptr< T > | static_self_cast () |
|
template<typename T > |
stdext::shared_object_ptr< T > | dynamic_self_cast () |
|
template<typename T > |
stdext::shared_object_ptr< T > | const_self_cast () |
|
Definition at line 29 of file particle.h.
◆ Particle()
Particle::Particle |
( |
const Point & |
pos, |
|
|
const Size & |
startSize, |
|
|
const Size & |
finalSize, |
|
|
const PointF & |
velocity, |
|
|
const PointF & |
acceleration, |
|
|
float |
duration, |
|
|
float |
ignorePhysicsAfter, |
|
|
const std::vector< Color > & |
colors, |
|
|
const std::vector< float > & |
colorsStops, |
|
|
Painter::CompositionMode |
compositionMode = Painter::CompositionMode_Normal , |
|
|
TexturePtr |
texture = nullptr |
|
) |
| |
◆ getPosition()
PointF Particle::getPosition |
( |
| ) |
|
|
inline |
◆ getVelocity()
PointF Particle::getVelocity |
( |
| ) |
|
|
inline |
◆ hasFinished()
bool Particle::hasFinished |
( |
| ) |
|
|
inline |
◆ render()
void Particle::render |
( |
| ) |
|
◆ setPosition()
void Particle::setPosition |
( |
const PointF & |
position | ) |
|
|
inline |
◆ setVelocity()
void Particle::setVelocity |
( |
const PointF & |
velocity | ) |
|
|
inline |
◆ update()
void Particle::update |
( |
float |
elapsedTime | ) |
|
The documentation for this class was generated from the following files: