CMGDK r49-rc2
|
RGBA四原色类 更多...
#include <Color4f.H>
公有成员 | |
Color4f () | |
本类构造函数 | |
Color4f (COLOR_ENUM ce) | |
本类构造函数 | |
Color4f (COLOR_ENUM ce, float ta) | |
本类构造函数 | |
Color4f (float v) | |
本类构造函数 | |
Color4f (float vr, float vg, float vb, float va) | |
本类构造函数 | |
Color4f (const Color3f &v, float va=1) | |
本类构造函数 | |
void | Use (COLOR_ENUM, float) |
void | Zero () |
全清为0 | |
void | One () |
全清为1 | |
void | Rand () |
全随机 | |
void | RandRGB () |
除了Alpha之外全随机 | |
void | MergeAlpha (const Color4f &v, float va) |
混合Alpha | |
void | Set (const Color3f &v, float va=1) |
设置颜色 | |
void | Set (float vr, float vg, float vb) |
设置颜色 | |
void | Set (float vr, float vg, float vb, float va) |
设置颜色 | |
void | Set4i (int vr, int vg, int vb, int va) |
void | SetLum (float v) |
设置颜色 | |
void | To (float, float, float, float) |
转换到另一颜色 | |
void | To (const Color4f &c, float v) |
转换到另一颜色 | |
void | To (const Color3f &c, float v) |
转换到另一颜色 | |
void | Grey () |
将当前色彩变成灰色 | |
void | operator= (const float *v) |
void | operator= (const Color3f &v) |
void | operator= (const Color4f &v) |
void | operator= (COLOR_ENUM ce) |
bool | operator== (const Color4f &) |
bool | operator!= (const Color4f &) |
void | operator+= (const Color4f &v) |
void | operator-= (const Color4f &v) |
void | operator*= (const Color4f &v) |
void | operator/= (const Color4f &v) |
void | operator+= (const Color3f &v) |
void | operator-= (const Color3f &v) |
void | operator*= (const Color3f &v) |
void | operator/= (const Color3f &v) |
void | operator*= (float v) |
void | operator/= (float v) |
Color4f | operator+ (const Color4f &v) |
Color4f | operator- (const Color4f &v) |
Color4f | operator* (const Color4f &v) |
Color4f | operator/ (const Color4f &v) |
Color4f | operator* (float v) |
Color4f | operator/ (float v) |
operator float * () const | |
operator const float * () const | |
公有属性 | |
float | r |
float | g |
float | b |
float | a |
rgba 4原色 |
RGBA四原色类
r,g,b,a四原色类
hgl::Color4f::Color4f | ( | ) | [inline] |
本类构造函数
hgl::Color4f::Color4f | ( | COLOR_ENUM | ce | ) | [inline] |
本类构造函数
hgl::Color4f::Color4f | ( | COLOR_ENUM | ce, |
float | ta | ||
) | [inline] |
本类构造函数
hgl::Color4f::Color4f | ( | float | v | ) | [inline] |
本类构造函数
hgl::Color4f::Color4f | ( | float | vr, |
float | vg, | ||
float | vb, | ||
float | va | ||
) | [inline] |
本类构造函数
hgl::Color4f::Color4f | ( | const Color3f & | v, |
float | va = 1 |
||
) | [inline] |
本类构造函数
void hgl::Color4f::Grey | ( | ) |
将当前色彩变成灰色
void hgl::Color4f::MergeAlpha | ( | const Color4f & | v, |
float | va | ||
) | [inline] |
混合Alpha
void hgl::Color4f::One | ( | ) | [inline] |
全清为1
hgl::Color4f::operator const float * | ( | ) | const [inline] |
hgl::Color4f::operator float * | ( | ) | const [inline] |
bool hgl::Color4f::operator!= | ( | const Color4f & | v | ) |
Color4f hgl::Color4f::operator* | ( | float | v | ) | [inline] |
void hgl::Color4f::operator*= | ( | const Color4f & | v | ) | [inline] |
void hgl::Color4f::operator*= | ( | const Color3f & | v | ) | [inline] |
void hgl::Color4f::operator*= | ( | float | v | ) | [inline] |
void hgl::Color4f::operator+= | ( | const Color4f & | v | ) | [inline] |
void hgl::Color4f::operator+= | ( | const Color3f & | v | ) | [inline] |
void hgl::Color4f::operator-= | ( | const Color4f & | v | ) | [inline] |
void hgl::Color4f::operator-= | ( | const Color3f & | v | ) | [inline] |
Color4f hgl::Color4f::operator/ | ( | float | v | ) | [inline] |
void hgl::Color4f::operator/= | ( | const Color4f & | v | ) | [inline] |
void hgl::Color4f::operator/= | ( | const Color3f & | v | ) | [inline] |
void hgl::Color4f::operator/= | ( | float | v | ) | [inline] |
void hgl::Color4f::operator= | ( | const Color3f & | v | ) | [inline] |
void hgl::Color4f::operator= | ( | const Color4f & | v | ) | [inline] |
void hgl::Color4f::operator= | ( | const float * | v | ) | [inline] |
void hgl::Color4f::operator= | ( | COLOR_ENUM | ce | ) | [inline] |
bool hgl::Color4f::operator== | ( | const Color4f & | v | ) |
void hgl::Color4f::Rand | ( | ) |
全随机
void hgl::Color4f::RandRGB | ( | ) |
除了Alpha之外全随机
void hgl::Color4f::Set | ( | float | vr, |
float | vg, | ||
float | vb | ||
) | [inline] |
设置颜色
void hgl::Color4f::Set | ( | float | vr, |
float | vg, | ||
float | vb, | ||
float | va | ||
) | [inline] |
设置颜色
void hgl::Color4f::Set | ( | const Color3f & | v, |
float | va = 1 |
||
) | [inline] |
设置颜色
void hgl::Color4f::SetLum | ( | float | v | ) | [inline] |
设置颜色
void hgl::Color4f::To | ( | float | nr, |
float | ng, | ||
float | nb, | ||
float | pos | ||
) |
转换到另一颜色
求当前颜色过渡到另一颜色时某一比例时的颜色
nr,ng,nb | 新的颜色 |
pos | 过渡比例,0时为当前的颜色,1时为nr,ng,nb |
void hgl::Color4f::To | ( | const Color4f & | c, |
float | v | ||
) | [inline] |
转换到另一颜色
void hgl::Color4f::To | ( | const Color3f & | c, |
float | v | ||
) | [inline] |
转换到另一颜色
void hgl::Color4f::Use | ( | COLOR_ENUM | ce, |
float | ta | ||
) |
void hgl::Color4f::Zero | ( | ) | [inline] |
全清为0
float hgl::Color4f::a |
rgba 4原色
float hgl::Color4f::b |
float hgl::Color4f::g |
float hgl::Color4f::r |