KrisLibrary
1.0.0
|
An rgba color. More...
#include <GLColor.h>
Public Member Functions | |
GLColor (float r=1, float g=1, float b=1, float a=1) | |
GLColor (const float rgba[4]) | |
GLColor (const GLColor &col) | |
operator float * () | |
operator const float * () const | |
const GLColor & | operator= (const GLColor &col) |
bool | operator== (const GLColor &col) const |
bool | operator!= (const GLColor &col) const |
float & | operator[] (int i) |
const float & | operator[] (int i) const |
float & | red () |
float & | green () |
float & | blue () |
float & | alpha () |
void | set (float r, float g, float b, float a=1) |
void | set (const float rgba[4]) |
void | set (const GLColor &col) |
void | setBlack (float a=1) |
void | setWhite (float a=1) |
void | setGray (float c=1) |
void | setRed (float r=1) |
void | setGreen (float g=1) |
void | setBlue (float b=1) |
void | setCyan (float c=1) |
void | setMagenta (float c=1) |
void | setYellow (float c=1) |
void | setRandom () |
void | setHSV (float h, const float s, const float v) |
float | getLuminance () const |
void | getHSV (float &h, float &s, float &v) const |
void | clamp (float min=0.f, float max=1.f) |
void | compose (const GLColor &a, const GLColor &b) |
void | scale (const GLColor &a, float c) |
void | add (const GLColor &a, const GLColor &b) |
void | blend (const GLColor &a, const GLColor &b, float t) |
void | setCurrentGL () const |
Public Attributes | |
float | rgba [4] |
An rgba color.