载入中...
搜索中...
未找到
eve::particles::ParticleGradient类 参考

Multi-stop color gradient sampled with linear interpolation between stops. Stops are kept sorted by t. Empty gradient means "use the legacy colorStart/colorEnd two-point lerp". 更多...

#include <ParticleCurve.h>

Public 成员函数

void clear ()
 Clears .
 
void add (float t, float r, float g, float b, float a)
 Adds .
 
bool empty () const
 Empty.
 
size_t size () const
 Returns the size of .
 
const ColorStop & at (size_t i) const
 At.
 
void sample (float t, float &r, float &g, float &b, float &a) const
 Sample.
 

详细描述

Multi-stop color gradient sampled with linear interpolation between stops. Stops are kept sorted by t. Empty gradient means "use the legacy colorStart/colorEnd two-point lerp".

在文件 ParticleCurve.h 第 29 行定义.

成员函数说明

◆ add()

void eve::particles::ParticleGradient::add ( float  t,
float  r,
float  g,
float  b,
float  a 
)
inline

Adds .

Sort.

在文件 ParticleCurve.h 第 35 行定义.

引用了 a, b, g, r, t, x , 以及 y.

◆ at()

const ColorStop & eve::particles::ParticleGradient::at ( size_t  i) const
inline

At.

在文件 ParticleCurve.h 第 47 行定义.

◆ clear()

void eve::particles::ParticleGradient::clear ( )
inline

Clears .

在文件 ParticleCurve.h 第 32 行定义.

◆ empty()

bool eve::particles::ParticleGradient::empty ( ) const
inline

Empty.

在文件 ParticleCurve.h 第 43 行定义.

◆ sample()

void eve::particles::ParticleGradient::sample ( float  t,
float &  r,
float &  g,
float &  b,
float &  a 
) const
inline

Sample.

在文件 ParticleCurve.h 第 50 行定义.

引用了 a, b, f, g, n, p, r, s , 以及 t.

◆ size()

size_t eve::particles::ParticleGradient::size ( ) const
inline

Returns the size of .

在文件 ParticleCurve.h 第 45 行定义.


该类的文档由以下文件生成: