Luanti 5.10.0-dev
 
Loading...
Searching...
No Matches
ParticleParamTypes::TweenedParameter< T > Struct Template Reference

#include <particles.h>

+ Collaboration diagram for ParticleParamTypes::TweenedParameter< T >:

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)
 
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
 
start
 
end
 

Member Typedef Documentation

◆ This

template<typename T >
using ParticleParamTypes::TweenedParameter< T >::This = TweenedParameter<T>

◆ ValType

template<typename T >
using ParticleParamTypes::TweenedParameter< T >::ValType = T

Constructor & Destructor Documentation

◆ TweenedParameter() [1/3]

template<typename T >
ParticleParamTypes::TweenedParameter< T >::TweenedParameter ( )
default

◆ TweenedParameter() [2/3]

template<typename T >
ParticleParamTypes::TweenedParameter< T >::TweenedParameter ( T _start,
T _end )
inline

◆ TweenedParameter() [3/3]

template<typename T >
template<typename M >
ParticleParamTypes::TweenedParameter< T >::TweenedParameter ( M b)
inline

Member Function Documentation

◆ blend()

template<typename T >
T TweenedParameter::blend ( float fac) const

References myrand_range().

Referenced by ParticleSpawner::spawnParticle().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ deSerialize()

template<typename T >
void TweenedParameter::deSerialize ( std::istream & is)

References readF32(), readU16(), and readU8().

Referenced by ServerParticleTexture::deSerialize().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ serialize()

template<typename T >
void TweenedParameter::serialize ( std::ostream & os) const

References writeF32(), writeU16(), and writeU8().

Referenced by ServerParticleTexture::serialize().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Member Data Documentation

◆ beginning

template<typename T >
f32 ParticleParamTypes::TweenedParameter< T >::beginning = 0.0f

◆ end

◆ reps

template<typename T >
u16 ParticleParamTypes::TweenedParameter< T >::reps = 1

◆ start

◆ style


The documentation for this struct was generated from the following files: