|
libtcod
|
A C++ RGBA color, used to handle conversions between color types. More...
#include <color.hpp>
Public Member Functions | |
| constexpr | ColorRGBA () noexcept |
| Default construct a black ColorRGBA object. | |
| constexpr | ColorRGBA (uint8_t red, uint8_t green, uint8_t blue, uint8_t alpha=255) noexcept |
| Construct a ColorRGBA object with the provided color and alpha. | |
| constexpr | ColorRGBA (const TCOD_ColorRGB &rhs, uint8_t alpha=255) noexcept |
| Construct a ColorRGBA object by adding an alpha channel to an RGB object. | |
| constexpr | ColorRGBA (const TCOD_ColorRGBA &rhs) noexcept |
| Construct a ColorRGBA object from an TCOD_ColorRGBA struct. | |
| constexpr | operator TCOD_ColorRGB () const noexcept |
| Allow explicit conversions to a TCOD_ColorRGB struct. | |
| constexpr | operator TCOD_ColorRGBA * () noexcept |
| Allow explicit conversions to a TCOD_ColorRGBA pointer. | |
| constexpr | operator const TCOD_ColorRGBA * () const noexcept |
| Allow explicit conversions to a const TCOD_ColorRGBA pointer. | |
| Public Member Functions inherited from TCOD_ColorRGBA | |
| constexpr bool | operator== (const TCOD_ColorRGBA &rhs) const noexcept |
| constexpr bool | operator!= (const TCOD_ColorRGBA &rhs) const noexcept |
| constexpr TCOD_ColorRGBA & | operator= (const TCOD_ColorRGB &rhs) |
| template<class Archive> | |
| void | serialize (Archive &archive) |
Additional Inherited Members | |
| Public Attributes inherited from TCOD_ColorRGBA | |
| uint8_t | r |
| uint8_t | g |
| uint8_t | b |
| uint8_t | a |
A C++ RGBA color, used to handle conversions between color types.
embed:rst:leading-asterisk .. versionadded:: 1.19
|
inlineconstexprnoexcept |
Default construct a black ColorRGBA object.
RGB values are zero, alpha is 255.