|
Bomberman
|
Object representation of color. More...
#include <Color.hpp>
Public Member Functions | |
| Color (unsigned char r, unsigned char g, unsigned char b, unsigned char a) | |
| A Color constructor. More... | |
| Color (float h, float s, float v) | |
| A Color constructor. More... | |
| Color (const ::Color &) | |
| A constructor using ray's own color struct @info Useful when want to use pre-defined color. More... | |
| Color (const Color &)=default | |
| A default copy constructor. More... | |
| Color (unsigned int hexValue) | |
| Create a color from an hexadecimal value. More... | |
| ~Color ()=default | |
| A default destructor. More... | |
| Color & | operator= (const Color &)=default |
| An color is assignable. More... | |
| Color & | setR (unsigned char r) |
| set R-component of color More... | |
| Color & | setG (unsigned char g) |
| set G-component of color More... | |
| Color & | setB (unsigned char b) |
| set B-component of color More... | |
| Color & | setA (unsigned char a) |
| set A-component of color More... | |
| unsigned char | getR (void) const |
| unsigned char | getG (void) const |
| unsigned char | getB (void) const |
| unsigned char | getA (void) const |
| int | toHex (void) const |
Private Attributes | |
| ::Color | _color |
| Color, really, that's just it... More... | |
| INTERNAL | __pad0__: operator ::Color() const |
Object representation of color.
| RAY::Color::Color | ( | unsigned char | r, |
| unsigned char | g, | ||
| unsigned char | b, | ||
| unsigned char | a | ||
| ) |
A Color constructor.
| r | R-component of color |
| g | B-component of color |
| g | G-component of color |
| a | A-component of color |
| RAY::Color::Color | ( | float | h, |
| float | s, | ||
| float | v | ||
| ) |
A Color constructor.
| h | H-component of color |
| s | S-component of color |
| v | V-component of color |
| RAY::Color::Color | ( | const ::Color & | color | ) |
A constructor using ray's own color struct @info Useful when want to use pre-defined color.
|
default |
A default copy constructor.
| RAY::Color::Color | ( | unsigned int | hexValue | ) |
Create a color from an hexadecimal value.
|
default |
A default destructor.
| unsigned char RAY::Color::getA | ( | void | ) | const |
| unsigned char RAY::Color::getB | ( | void | ) | const |
| unsigned char RAY::Color::getG | ( | void | ) | const |
| unsigned char RAY::Color::getR | ( | void | ) | const |
| Color & RAY::Color::setA | ( | unsigned char | a | ) |
set A-component of color
| Color & RAY::Color::setB | ( | unsigned char | b | ) |
set B-component of color
| Color & RAY::Color::setG | ( | unsigned char | g | ) |
set G-component of color
| Color & RAY::Color::setR | ( | unsigned char | r | ) |
set R-component of color
| int RAY::Color::toHex | ( | void | ) | const |
|
private |
1.8.17