#include <particles.h>
Public Types | |
| using | ValType = T |
| using | This = TweenedParameter<T> |
Public Member Functions | |
| TweenedParameter ()=default | |
| TweenedParameter (T _start, T _end) | |
| template<typename M> | |
| TweenedParameter (M b) | |
| T | blend (float fac) const |
| void | serialize (std::ostream &os) const |
| void | deSerialize (std::istream &is) |
Public Attributes | |
| TweenStyle | style = TweenStyle::fwd |
| u16 | reps = 1 |
| f32 | beginning = 0.0f |
| T | start |
| T | end |
| using ParticleParamTypes::TweenedParameter< T >::This = TweenedParameter<T> |
| using ParticleParamTypes::TweenedParameter< T >::ValType = T |
|
default |
|
inline |
|
inline |
| T TweenedParameter::blend | ( | float | fac | ) | const |
References beginning, end, ParticleParamTypes::flicker, ParticleParamTypes::fwd, myrand_range(), ParticleParamTypes::pulse, reps, ParticleParamTypes::rev, start, style, and ParticleParamTypes::TweenStyle_END.
| void TweenedParameter::deSerialize | ( | std::istream & | is | ) |
References beginning, end, ParticleParamTypes::fwd, readF32(), readU16(), readU8(), reps, start, style, and ParticleParamTypes::TweenStyle_END.
| void TweenedParameter::serialize | ( | std::ostream & | os | ) | const |
References beginning, end, reps, start, style, writeF32(), writeU16(), and writeU8().
| f32 ParticleParamTypes::TweenedParameter< T >::beginning = 0.0f |
Referenced by blend(), deSerialize(), LuaParticleParams::readTweenTable(), and serialize().
| T ParticleParamTypes::TweenedParameter< T >::end |
Referenced by blend(), deSerialize(), ParticleParamTypes::dump(), LuaParticleParams::readTweenTable(), and serialize().
| u16 ParticleParamTypes::TweenedParameter< T >::reps = 1 |
Referenced by blend(), deSerialize(), ParticleParamTypes::dump(), LuaParticleParams::readTweenTable(), and serialize().
| T ParticleParamTypes::TweenedParameter< T >::start |
Referenced by blend(), deSerialize(), ParticleParamTypes::dump(), LuaParticleParams::readTweenTable(), and serialize().
| TweenStyle ParticleParamTypes::TweenedParameter< T >::style = TweenStyle::fwd |
Referenced by blend(), deSerialize(), ParticleParamTypes::dump(), LuaParticleParams::readTweenTable(), and serialize().