#include <Color.h>
Public Methods | |
| Color (GLfloat r=1.0f, GLfloat g=1.0f, GLfloat b=1.0f, GLfloat a=1.0f) | |
| Constructor with given color attributes. default color is white fully opaque. More... | |
| GLvoid | setColor (GLfloat r, GLfloat g, GLfloat b, GLfloat a=1.0f) |
| Setter for color attributes. More... | |
| GLvoid | r (GLfloat r) |
| setter for red. | |
| GLvoid | g (GLfloat g) |
| setter for green. | |
| GLvoid | b (GLfloat b) |
| setter for blue. | |
| GLvoid | a (GLfloat a) |
| setter for alpha. | |
| GLfloat | r () const |
| Getter for red. | |
| GLfloat | g () const |
| Getter for green. | |
| GLfloat | b () const |
| Getter for blue. | |
| GLfloat | a () const |
| Getter for alpha. | |
| GLfloat & | r () |
| Reference to red. | |
| GLfloat & | g () |
| Reference to green. | |
| GLfloat & | b () |
| Reference to blue. | |
| GLfloat & | a () |
| Reference to alpha. | |
| std::string | toString () |
| Returns a string showing attributes. | |
|
||||||||||||||||||||
|
Constructor with given color attributes. default color is white fully opaque.
|
|
||||||||||||||||||||
|
Setter for color attributes.
|
1.2.11.1 written by Dimitri van Heesch,
© 1997-2001