Luanti 5.11.0-dev
 
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Loading...
Searching...
No Matches
ParticleParamTypes Namespace Reference

Classes

struct  Parameter
 
struct  RangedParameter
 
struct  TweenedParameter
 
struct  VectorParameter
 

Typedefs

template<bool cond, typename T >
using enableIf = typename std::enable_if<cond, T>::type
 
template<typename T >
using BlendFunction = T(float,T,T)
 
using f32Parameter = Parameter<f32, 1>
 
using v2fParameter = VectorParameter<v2f, 2>
 
using v3fParameter = VectorParameter<v3f, 3>
 
using v3fRange = RangedParameter<v3fParameter>
 
using f32Range = RangedParameter<f32Parameter>
 
using v2fTween = TweenedParameter<v2fParameter>
 
using v3fTween = TweenedParameter<v3fParameter>
 
using f32Tween = TweenedParameter<f32Parameter>
 
using v3fRangeTween = TweenedParameter<v3fRange>
 
using f32RangeTween = TweenedParameter<f32Range>
 

Enumerations

enum class  TweenStyle : u8 {
  fwd , rev , pulse , flicker ,
  TweenStyle_END
}
 
enum class  AttractorKind : u8 { none , point , line , plane }
 
enum class  BlendMode : u8 {
  alpha , add , sub , screen ,
  clip , BlendMode_END
}
 

Functions

 DECL_PARAM_OVERLOADS (u8)
 
 DECL_PARAM_OVERLOADS (s8)
 
 DECL_PARAM_OVERLOADS (u16)
 
 DECL_PARAM_OVERLOADS (s16)
 
 DECL_PARAM_OVERLOADS (u32)
 
 DECL_PARAM_OVERLOADS (s32)
 
 DECL_PARAM_OVERLOADS (f32)
 
 DECL_PARAM_OVERLOADS (v2f)
 
 DECL_PARAM_OVERLOADS (v3f)
 
template<typename E , enableIf< std::is_enum< E >::value, bool > = true>
void serializeParameterValue (std::ostream &os, E k)
 
template<typename E , enableIf< std::is_enum< E >::value, bool > = true>
void deSerializeParameterValue (std::istream &is, E &k)
 
template<typename T , size_t PN>
std::string dump (const Parameter< T, PN > &p)
 
template<typename T , size_t N>
std::string dump (const VectorParameter< T, N > &v)
 
template<typename T >
std::string dump (const RangedParameter< T > &r)
 
template<typename T >
std::string dump (const TweenedParameter< T > &t)
 

Typedef Documentation

◆ BlendFunction

template<typename T >
using ParticleParamTypes::BlendFunction = T(float,T,T)

◆ enableIf

template<bool cond, typename T >
using ParticleParamTypes::enableIf = typename std::enable_if<cond, T>::type

◆ f32Parameter

◆ f32Range

◆ f32RangeTween

◆ f32Tween

◆ v2fParameter

◆ v2fTween

◆ v3fParameter

◆ v3fRange

◆ v3fRangeTween

◆ v3fTween

Enumeration Type Documentation

◆ AttractorKind

enum class ParticleParamTypes::AttractorKind : u8
strong
Enumerator
none 
point 
line 
plane 

◆ BlendMode

enum class ParticleParamTypes::BlendMode : u8
strong
Enumerator
alpha 
add 
sub 
screen 
clip 
BlendMode_END 

◆ TweenStyle

enum class ParticleParamTypes::TweenStyle : u8
strong
Enumerator
fwd 
rev 
pulse 
flicker 
TweenStyle_END 

Function Documentation

◆ DECL_PARAM_OVERLOADS() [1/9]

ParticleParamTypes::DECL_PARAM_OVERLOADS ( f32 )

◆ DECL_PARAM_OVERLOADS() [2/9]

ParticleParamTypes::DECL_PARAM_OVERLOADS ( s16 )

◆ DECL_PARAM_OVERLOADS() [3/9]

ParticleParamTypes::DECL_PARAM_OVERLOADS ( s32 )

◆ DECL_PARAM_OVERLOADS() [4/9]

ParticleParamTypes::DECL_PARAM_OVERLOADS ( s8 )

◆ DECL_PARAM_OVERLOADS() [5/9]

ParticleParamTypes::DECL_PARAM_OVERLOADS ( u16 )

◆ DECL_PARAM_OVERLOADS() [6/9]

ParticleParamTypes::DECL_PARAM_OVERLOADS ( u32 )

◆ DECL_PARAM_OVERLOADS() [7/9]

ParticleParamTypes::DECL_PARAM_OVERLOADS ( u8 )

◆ DECL_PARAM_OVERLOADS() [8/9]

ParticleParamTypes::DECL_PARAM_OVERLOADS ( v2f )

◆ DECL_PARAM_OVERLOADS() [9/9]

ParticleParamTypes::DECL_PARAM_OVERLOADS ( v3f )

◆ deSerializeParameterValue()

template<typename E , enableIf< std::is_enum< E >::value, bool > = true>
void ParticleParamTypes::deSerializeParameterValue ( std::istream & is,
E & k )

References deSerializeParameterValue().

Referenced by ParticleParamTypes::Parameter< T, PN >::deSerialize(), ServerParticleTexture::deSerialize(), deSerializeParameterValue(), and Client::handleCommand_AddParticleSpawner().

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

◆ dump() [1/4]

template<typename T , size_t PN>
std::string ParticleParamTypes::dump ( const Parameter< T, PN > & p)
inline

References p().

Referenced by dump(), and dump().

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

◆ dump() [2/4]

template<typename T >
std::string ParticleParamTypes::dump ( const RangedParameter< T > & r)
inline

References ParticleParamTypes::RangedParameter< T >::bias, dump(), ParticleParamTypes::RangedParameter< T >::max, and ParticleParamTypes::RangedParameter< T >::min.

+ Here is the call graph for this function:

◆ dump() [3/4]

template<typename T >
std::string ParticleParamTypes::dump ( const TweenedParameter< T > & t)
inline

References dump(), ParticleParamTypes::TweenedParameter< T >::end, flicker, fwd, pulse, ParticleParamTypes::TweenedParameter< T >::reps, rev, ParticleParamTypes::TweenedParameter< T >::start, and ParticleParamTypes::TweenedParameter< T >::style.

+ Here is the call graph for this function:

◆ dump() [4/4]

template<typename T , size_t N>
std::string ParticleParamTypes::dump ( const VectorParameter< T, N > & v)
inline

◆ serializeParameterValue()

template<typename E , enableIf< std::is_enum< E >::value, bool > = true>
void ParticleParamTypes::serializeParameterValue ( std::ostream & os,
E k )

References serializeParameterValue().

Referenced by Server::SendAddParticleSpawner(), ParticleParamTypes::Parameter< T, PN >::serialize(), ServerParticleTexture::serialize(), and serializeParameterValue().

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