GL Studio API
|
#include <gls_color.h>
Public Member Functions | |
glsColor (void) | |
glsColor (unsigned char r, unsigned char g, unsigned char b, unsigned char a) | |
glsColor (const unsigned char newColor[]) | |
glsColor (unsigned long rgbaVal) | |
glsColor (const glsColor &color) | |
void | SetRGBA4f (float r, float g, float b, float a) |
void | GetRGBA4f (float &r, float &g, float &b, float &a) const |
void | SetRGBA4d (double r, double g, double b, double a) |
void | GetRGBA4d (double &r, double &g, double &b, double &a) const |
void | RGBA (unsigned char r, unsigned char g, unsigned char b, unsigned char a) |
void | RGBA (const unsigned char newColor[]) |
void | RGBA (unsigned long rgbaVal) |
unsigned char * | RGBA (void) |
unsigned long | RGBA_ULong (void) const |
unsigned char | R (void) const |
unsigned char | G (void) const |
unsigned char | B (void) const |
unsigned char | A (void) const |
void | R (const unsigned char val) |
void | G (const unsigned char val) |
void | B (const unsigned char val) |
void | A (const unsigned char val) |
bool | operator== (const glsColor &arg) const |
bool | operator!= (const glsColor &arg) const |
glsColor & | operator= (const glsColor &color) |
The Color class: Implements a 4 component RGBA color.
|
inline |
Red, Green, Blue, Alpha 0-255 range default constructor. Intializes rgba data to zero
|
inline |
4ub constructor. Intializes using rgba values
r | Red value, range 0-255 |
g | Green value, range 0-255 |
b | Blue value, range 0-255 |
a | Alpha value, range 0-255 |
|
inline |
4ubv constructor. Intializes using rgba value
newColor | 4 character RGBA array, range 0-255 |
|
inline |
4ul constructor.
rgbaVal | Unsigned long containing color in the form RRGGBBAA (8 bits per component |
|
inline |
|
inline |
Set the Alpha component of this color
val | The new value for the component |
|
inline |
|
inline |
Set the Blue component of this color
val | The new value for the component |
|
inline |
|
inline |
Set the Green component of this color
val | The new value for the component |
|
inline |
Gets RGBA value using doubles
r | Red value, range 0-1.0 |
g | Green value, range 0-1.0 |
b | Blue value, range 0-1.0 |
a | Alpha value, range 0-1.0 |
|
inline |
Gets RGBA value using floats
r | Red value, range 0-1.0 |
g | Green value, range 0-1.0 |
b | Blue value, range 0-1.0 |
a | Alpha value, range 0-1.0 |
|
inline |
Determines if the color is NOT identical to the supplied color
arg | color to compare to |
|
inline |
Determines if the color is identical to the supplied color
arg | color to compare to |
|
inline |
|
inline |
Set the Red component of this color
val | The new value for the component |
|
inline |
Sets RGBA value
r | Red value, range 0-255 |
g | Green value, range 0-255 |
b | Blue value, range 0-255 |
a | Alpha value, range 0-255 |
|
inline |
Sets RGBA value
newColor | 4 character RGBA array, range 0-255 |
|
inline |
Sets RGBA value
rgbaVal | Unsigned long containing color in the form RRGGBBAA (8 bits per component |
|
inline |
Gets RGBA value
|
inline |
|
inline |
Sets RGBA value using doubles
r | Red value, range 0-1.0 |
g | Green value, range 0-1.0 |
b | Blue value, range 0-1.0 |
a | Alpha value, range 0-1.0 |
|
inline |
Sets RGBA value using floats
r | Red value, range 0-1.0 |
g | Green value, range 0-1.0 |
b | Blue value, range 0-1.0 |
a | Alpha value, range 0-1.0 |