Red, Green and Blue 32 bit floating point values. More...
Public Member Functions | |
operator Vector3D_t & () | |
Convert the color to a Vector3D_t. | |
operator const Vector3D_t & () const | |
Convert the color to a const Vector3D_t. | |
RGBFloat_t & | operator= (const Vector3D_t &rInput) |
Convert a Vector3D_t into a RGBFloat_t. | |
void | HSLInterpolate (const RGBFloat_t *pInput1, const RGBFloat_t *pInput2, float fFactor, uint_t bDirection=0) |
Interpolate between colors using the HSL color wheel. | |
Public Attributes | |
float | m_fRed |
32 bit float red value | |
float | m_fGreen |
32 bit float green value | |
float | m_fBlue |
32 bit float blue value | |
Static Public Attributes | |
static const RGBFloat_t | Aqua = {0,1.0f,1.0f} |
static const RGBFloat_t | Black = {0,0,0} |
static const RGBFloat_t | Blue = {0,0,1.0f} |
static const RGBFloat_t | Fuchsia = {1.0f,0,1.0f} |
static const RGBFloat_t | Gray = {0.5f,0.5f,0.5f} |
static const RGBFloat_t | Green = {0,0.5f,0} |
static const RGBFloat_t | Lime = {0,1.0f,0} |
static const RGBFloat_t | Maroon = {0.5f,0,0} |
static const RGBFloat_t | Navy = {0,0,0.5f} |
static const RGBFloat_t | Olive = {0.5f,0.5f,0} |
static const RGBFloat_t | Orange = {1.0f,165.0f/255.0f,0} |
static const RGBFloat_t | Purple = {0.5f,0,0.5f} |
static const RGBFloat_t | Red = {1.0f,0,0} |
static const RGBFloat_t | Silver = {0.75f,0.75f,0.75f} |
static const RGBFloat_t | Teal = {0,0.5f,0.5f} |
static const RGBFloat_t | White = {1.0f,1.0f,1.0f} |
static const RGBFloat_t | Yellow = {1.0f,1.0f,0} |
Red, Green and Blue 32 bit floating point values.
Structure that contains the red, green and blue (in that order) color components where the value of 0.0f mean absence of color and 1.0f is the maximum color
void BURGER_API Burger::RGBFloat_t::HSLInterpolate | ( | const RGBFloat_t * | pInput1, |
const RGBFloat_t * | pInput2, | ||
float | fFactor, | ||
uint_t | bDirection = 0 ) |
Interpolate between colors using the HSL color wheel.
Interpolate between two colors using the HSL color wheel to make a smoother color shift.
|
inline |
Convert the color to a const Vector3D_t.
Since the RGBFloat_t structure is identical to a Vector3D_t, this operator will allow the color to be used with the math operators that use a Vector3D_t as input.
|
inline |
Convert the color to a Vector3D_t.
Since the RGBFloat_t structure is identical to a Vector3D_t, this operator will allow the color to be used with the math operators that use a Vector3D_t as input or output.
|
inline |
Convert a Vector3D_t into a RGBFloat_t.
Since the RGBFloat_t structure is identical to a Vector3D_t, this operator will copy a Vector3D_t into this color structure
rInput | Reference to a Vector3D_t to copy into this structure |
|
static |
RGBA 0,1.0f,1.0f : |
|
static |
RGBA 0,0,0 : |
|
static |
RGBA 0,0,1.0f : |
|
static |
RGBA 1.0f,0,1.0f : |
|
static |
RGBA 0.5f,0.5f,0.5f : |
|
static |
RGBA 0,0.5f,0 : |
|
static |
RGBA 0,1.0f,0 : |
float Burger::RGBFloat_t::m_fBlue |
32 bit float blue value
float Burger::RGBFloat_t::m_fGreen |
32 bit float green value
float Burger::RGBFloat_t::m_fRed |
32 bit float red value
|
static |
RGBA 0.5f,0,0 : |
|
static |
RGBA 0,0,0.5f : |
|
static |
RGBA 0.5f,0.5f,0 : |
|
static |
RGBA 1.0f,165.0f/255.0f,0 : |
|
static |
RGBA 0.5f,0,0.5f : |
|
static |
RGBA 1.0f,0,0 : |
|
static |
RGBA 0.75f,0.75f,0.75f : |
|
static |
RGBA 0,0.5f,0.5f : |
|
static |
RGBA 1.0f,1.0f,1.0f : |
|
static |
RGBA 1.0f,1.0f,0 : |