![]() |
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 | |
| NOM_EXPORT T | r |
| Red component. | |
| NOM_EXPORT T | g |
| Green component. | |
| NOM_EXPORT T | b |
| Blue component. | |
| NOM_EXPORT T | a |
| Alpha component. | |
Static Public Attributes | |
| static NOM_EXPORT const T | ALPHA_TRANSPARENT |
| 100% transparent alpha channel value | |
| static NOM_EXPORT const T | ALPHA_OPAQUE |
| 100% opaque alpha channel value | |
| static NOM_EXPORT const Color4 | null |
| Null value. | |
| static NOM_EXPORT const Color4 | Transparent |
| Primary colors. | |
| static NOM_EXPORT const Color4 | Black |
| static NOM_EXPORT const Color4 | White |
| static NOM_EXPORT const Color4 | Red |
| static NOM_EXPORT const Color4 | Green |
| static NOM_EXPORT const Color4 | Blue |
| static NOM_EXPORT const Color4 | Yellow |
| static NOM_EXPORT const Color4 | Magenta |
| static NOM_EXPORT const Color4 | Cyan |
| static NOM_EXPORT const Color4 | Silver |
| Additional colors. | |
| static NOM_EXPORT const Color4 | Purple |
| static NOM_EXPORT const Color4 | Orange |
| static NOM_EXPORT const Color4 | LightGray |
| static NOM_EXPORT const Color4 | Gray |
| static NOM_EXPORT const Color4 | SkyBlue |
RGBA color container.
Implement specialized Color4<float> operators
Explicitly initialize alpha component of static colors to 255.
Definition at line 60 of file Color4.hpp.
|
inline |
Default constructor; initialize values to Color<T>::null.
Definition at line 63 of file Color4.hpp.
|
inline |
Destructor.
Definition at line 73 of file Color4.hpp.
|
inline |
Copy constructor.
Definition at line 84 of file Color4.hpp.
|
inlineexplicit |
Copy constructor.
Definition at line 98 of file Color4.hpp.
|
inline |
Constructor variant for setting a color using RGB values.
Definition at line 108 of file Color4.hpp.
|
inline |
Constructor variant for setting a color using RGBA values.
Definition at line 118 of file Color4.hpp.
| NOM_EXPORT T nom::Color4< T >::a |
Alpha component.
Definition at line 172 of file Color4.hpp.
|
static |
100% opaque alpha channel value
Definition at line 131 of file Color4.hpp.
|
static |
100% transparent alpha channel value
Definition at line 128 of file Color4.hpp.
| NOM_EXPORT T nom::Color4< T >::b |
Blue component.
Definition at line 169 of file Color4.hpp.
|
static |
Definition at line 143 of file Color4.hpp.
|
static |
Definition at line 147 of file Color4.hpp.
|
static |
Definition at line 150 of file Color4.hpp.
| NOM_EXPORT T nom::Color4< T >::g |
Green component.
Definition at line 166 of file Color4.hpp.
|
static |
Definition at line 157 of file Color4.hpp.
|
static |
Definition at line 146 of file Color4.hpp.
|
static |
Definition at line 156 of file Color4.hpp.
|
static |
Definition at line 149 of file Color4.hpp.
|
static |
Null value.
Definition at line 136 of file Color4.hpp.
|
static |
Definition at line 155 of file Color4.hpp.
|
static |
Definition at line 154 of file Color4.hpp.
| NOM_EXPORT T nom::Color4< T >::r |
Red component.
Definition at line 163 of file Color4.hpp.
|
static |
Definition at line 145 of file Color4.hpp.
|
static |
Additional colors.
Definition at line 153 of file Color4.hpp.
|
static |
Definition at line 158 of file Color4.hpp.
|
static |
Primary colors.
Consider using Color4::Transparent instead of Color4::null.
Rename constants to ALL UPPERCASE.
Definition at line 142 of file Color4.hpp.
|
static |
Definition at line 144 of file Color4.hpp.
|
static |
Definition at line 148 of file Color4.hpp.