|  | GL Studio C++ Runtime API
    | 
#include <gls_color.h>
| Public Member Functions | |
| GlsColor (void) | |
| GlsColor (unsigned char r, unsigned char g, unsigned char b, unsigned char a=255) | |
| GlsColor (const unsigned char newColor[]) | |
| GlsColor (unsigned long rgbaVal) | |
| GlsColor (const GlsColor &color) | |
| void | SetRGBA4f (float r, float g, float b, float a=1) | 
| void | GetRGBA4f (float &r, float &g, float &b, float &a) const | 
| void | SetRGBA4d (double r, double g, double b, double a=1) | 
| 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=255) | 
| 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 |