RGBA color composed of 4 floats. More...
#include <ccTypes.h>
Public Member Functions | |
Color4F () | |
Color4F (float _r, float _g, float _b, float _a) | |
Color4F (const Color3B &color) | |
Color4F (const Color4B &color) | |
bool | operator== (const Color4F &right) const |
bool | operator== (const Color3B &right) const |
bool | operator== (const Color4B &right) const |
bool | operator!= (const Color4F &right) const |
bool | operator!= (const Color3B &right) const |
bool | operator!= (const Color4B &right) const |
bool | equals (const Color4F &other) |
Public Attributes | |
GLfloat | r |
GLfloat | g |
GLfloat | b |
GLfloat | a |
Static Public Attributes | |
static const Color4F | WHITE |
static const Color4F | YELLOW |
static const Color4F | BLUE |
static const Color4F | GREEN |
static const Color4F | RED |
static const Color4F | MAGENTA |
static const Color4F | BLACK |
static const Color4F | ORANGE |
static const Color4F | GRAY |
RGBA color composed of 4 floats.
Color4F | ( | ) |
Color4F | ( | float | _r, |
float | _g, | ||
float | _b, | ||
float | _a | ||
) |
|
inline |
bool operator!= | ( | const Color4F & | right) | const |
bool operator!= | ( | const Color3B & | right) | const |
bool operator!= | ( | const Color4B & | right) | const |
bool operator== | ( | const Color4F & | right) | const |
bool operator== | ( | const Color3B & | right) | const |
bool operator== | ( | const Color4B & | right) | const |
GLfloat a |
GLfloat b |
|
static |
|
static |
GLfloat g |
|
static |
|
static |
|
static |
|
static |
GLfloat r |
|
static |
|
static |
|
static |