载入中...
搜索中...
未找到
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 ()
 
void add (float t, float r, float g, float b, float a)
 
bool empty () const
 
size_t size () const
 
const ColorStopat (size_t i) const
 
void sample (float t, float &r, float &g, float &b, float &a) const
 

详细描述

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.h29 行定义.

成员函数说明

◆ add()

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

在文件 ParticleCurve.h33 行定义.

引用了 a, b, x , 以及 y.

◆ at()

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

在文件 ParticleCurve.h41 行定义.

◆ clear()

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

在文件 ParticleCurve.h31 行定义.

◆ empty()

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

在文件 ParticleCurve.h39 行定义.

◆ sample()

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

在文件 ParticleCurve.h43 行定义.

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

◆ size()

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

在文件 ParticleCurve.h40 行定义.


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