RGBA color.
More...
#include <src/graphics/core/color.h>
|
| | Color (float aR=0.0f, float aG=0.0f, float aB=0.0f, float aA=0.0f) |
| | Constructor; default values are (0,0,0,0) = black.
|
| |
|
Color | Inverse () const |
| |
| float * | Array () |
| | Returns the struct cast to float* array; use with care!
|
| |
| const float * | Array () const |
| | Returns the struct cast to const float* array; use with care!
|
| |
| std::string | ToString () const |
| | Returns a string (r, g, b, a)
|
| |
|
bool | operator== (const Color &other) const |
| |
|
bool | operator!= (const Color &other) const |
| |
|
Color | operator* (float scale) const |
| |
|
| float | r |
| | Red, green, blue and alpha components.
|
| |
|
float | g |
| |
|
float | b |
| |
|
float | a |
| |
◆ Color()
| Gfx::Color::Color |
( |
float |
aR = 0.0f, |
|
|
float |
aG = 0.0f, |
|
|
float |
aB = 0.0f, |
|
|
float |
aA = 0.0f |
|
) |
| |
|
inlineexplicit |
Constructor; default values are (0,0,0,0) = black.
◆ Array() [1/2]
| float * Gfx::Color::Array |
( |
| ) |
|
|
inline |
Returns the struct cast to float* array; use with care!
◆ Array() [2/2]
| const float * Gfx::Color::Array |
( |
| ) |
const |
|
inline |
Returns the struct cast to const float* array; use with care!
◆ ToString()
| std::string Gfx::Color::ToString |
( |
| ) |
const |
|
inline |
Returns a string (r, g, b, a)
Red, green, blue and alpha components.
The documentation for this struct was generated from the following file: