Namespaces | |
namespace | ParticleParamTypes |
Macros | |
#define | PARAM_PVFN(n) ParticleParamTypes::n##ParameterValue |
#define | PARAM_DEF_SRZR(T, wr, rd) |
#define | PARAM_DEF_NUM(T, wr, rd) |
Typedefs | |
using | FlagT = std::underlying_type_t<ParticleTextureFlags> |
Enumerations | |
enum class | ParticleTextureFlags : u8 { animated = 1 , blend = 0x7 << 1 } |
Functions | |
template<typename T > | |
static T | numericalBlend (float fac, T min, T max) |
v2f PARAM_PVFN | pick (float *f, const v2f a, const v2f b) |
v3f PARAM_PVFN | pick (float *f, const v3f a, const v3f b) |
v2f PARAM_PVFN | interpolate (float fac, const v2f a, const v2f b) |
v3f PARAM_PVFN | interpolate (float fac, const v3f a, const v3f b) |
PARAM_DEF_NUM (u8, writeU8, readU8) | |
PARAM_DEF_NUM (s8, writeS8, readS8) | |
PARAM_DEF_NUM (u16, writeU16, readU16) | |
PARAM_DEF_NUM (s16, writeS16, readS16) | |
PARAM_DEF_NUM (u32, writeU32, readU32) | |
PARAM_DEF_NUM (s32, writeS32, readS32) | |
PARAM_DEF_NUM (f32, writeF32, readF32) | |
PARAM_DEF_SRZR (v2f, writeV2F32, readV2F32) | |
PARAM_DEF_SRZR (v3f, writeV3F32, readV3F32) | |
template<typename T , T(reader)(std::istream &is) > | |
bool | streamEndsBeforeParam (T &val, std::istream &is) |
#define PARAM_DEF_NUM | ( | T, | |
wr, | |||
rd ) |
#define PARAM_DEF_SRZR | ( | T, | |
wr, | |||
rd ) |
#define PARAM_PVFN | ( | n | ) | ParticleParamTypes::n##ParameterValue |
using FlagT = std::underlying_type_t<ParticleTextureFlags> |
|
strong |
v2f PARAM_PVFN interpolate | ( | float | fac, |
const v2f | a, | ||
const v2f | b ) |
Referenced by GUITouchscreenLayout::interpolateGUIImages().
v3f PARAM_PVFN interpolate | ( | float | fac, |
const v3f | a, | ||
const v3f | b ) |
|
static |
PARAM_DEF_SRZR | ( | v2f | , |
writeV2F32 | , | ||
readV2F32 | ) |
PARAM_DEF_SRZR | ( | v3f | , |
writeV3F32 | , | ||
readV3F32 | ) |
v2f PARAM_PVFN pick | ( | float * | f, |
const v2f | a, | ||
const v2f | b ) |
v3f PARAM_PVFN pick | ( | float * | f, |
const v3f | a, | ||
const v3f | b ) |
|
inline |