![]() |
nomlib
|
RGBA color container. More...
#include <Color4.hpp>
Public Member Functions | |
| Color4 (void) | |
| Default constructor; initialize values to Color<T>::null. | |
| ~Color4 (void) | |
| Destructor. | |
| template<typename U> | |
| Color4 (const Color4< U > &rhs) | |
| Copy constructor. | |
| Color4 (const Color4< float > &rhs) | |
| Copy constructor. | |
| Color4 (T r, T g, T b) | |
| Constructor variant for setting a color using RGB values. | |
| Color4 (T red, T green, T blue, T alpha) | |
| Constructor variant for setting a color using RGBA values. | |
Public Attributes | |
| T | r |
| Red component. | |
| T | g |
| Green component. | |
| T | b |
| Blue component. | |
| T | a |
| Alpha component. | |
Static Public Attributes | |
| static const T | ALPHA_TRANSPARENT |
| 100% transparent alpha channel value | |
| static const T | ALPHA_OPAQUE |
| 100% opaque alpha channel value | |
| static const Color4 | null |
| Null value. | |
| static const Color4 | Transparent |
| Primary colors. | |
| static const Color4 | Black |
| static const Color4 | White |
| static const Color4 | Red |
| static const Color4 | Green |
| static const Color4 | Blue |
| static const Color4 | Yellow |
| static const Color4 | Magenta |
| static const Color4 | Cyan |
| static const Color4 | Silver |
| Additional colors. | |
| static const Color4 | Purple |
| static const Color4 | Orange |
| static const Color4 | LightGray |
| static const Color4 | Gray |
| static const Color4 | SkyBlue |
RGBA color container.
Implement specialized Color4<float> operators
Explicitly initialize alpha component of static colors to 255.
Definition at line 59 of file Color4.hpp.
|
inline |
Default constructor; initialize values to Color<T>::null.
Definition at line 62 of file Color4.hpp.
|
inline |
Destructor.
Definition at line 72 of file Color4.hpp.
|
inline |
Copy constructor.
Definition at line 83 of file Color4.hpp.
|
inlineexplicit |
Copy constructor.
Definition at line 97 of file Color4.hpp.
|
inline |
Constructor variant for setting a color using RGB values.
Definition at line 107 of file Color4.hpp.
|
inline |
Constructor variant for setting a color using RGBA values.
Definition at line 117 of file Color4.hpp.
| T nom::Color4< T >::a |
Alpha component.
Definition at line 171 of file Color4.hpp.
|
static |
100% opaque alpha channel value
Definition at line 130 of file Color4.hpp.
|
static |
100% transparent alpha channel value
Definition at line 127 of file Color4.hpp.
| T nom::Color4< T >::b |
Blue component.
Definition at line 168 of file Color4.hpp.
|
static |
Definition at line 142 of file Color4.hpp.
|
static |
Definition at line 146 of file Color4.hpp.
|
static |
Definition at line 149 of file Color4.hpp.
| T nom::Color4< T >::g |
Green component.
Definition at line 165 of file Color4.hpp.
|
static |
Definition at line 156 of file Color4.hpp.
|
static |
Definition at line 145 of file Color4.hpp.
|
static |
Definition at line 155 of file Color4.hpp.
|
static |
Definition at line 148 of file Color4.hpp.
|
static |
Null value.
Definition at line 135 of file Color4.hpp.
|
static |
Definition at line 154 of file Color4.hpp.
|
static |
Definition at line 153 of file Color4.hpp.
| T nom::Color4< T >::r |
Red component.
Definition at line 162 of file Color4.hpp.
|
static |
Definition at line 144 of file Color4.hpp.
|
static |
Additional colors.
Definition at line 152 of file Color4.hpp.
|
static |
Definition at line 157 of file Color4.hpp.
|
static |
Primary colors.
Consider using Color4::Transparent instead of Color4::null.
Rename constants to ALL UPPERCASE.
Definition at line 141 of file Color4.hpp.
|
static |
Definition at line 143 of file Color4.hpp.
|
static |
Definition at line 147 of file Color4.hpp.