#include <MRColor.h>
|
| constexpr | Color () noexcept |
| |
| | Color (NoInit) noexcept |
| |
| constexpr | Color (int r, int g, int b, int a) noexcept |
| |
| constexpr | Color (int r, int g, int b) noexcept |
| |
| constexpr | Color (float r, float g, float b, float a) noexcept |
| |
| constexpr | Color (float r, float g, float b) noexcept |
| |
| constexpr unsigned int | getUInt32 () const noexcept |
| |
| template<typename T > |
| constexpr | Color (const Vector3< T > &vec) noexcept |
| |
| template<typename T > |
| constexpr | Color (const Vector4< T > &vec) noexcept |
| |
| template<typename T > |
| constexpr | operator Vector4< T > () const noexcept |
| |
| const uint8_t & | operator[] (int e) const |
| |
| uint8_t & | operator[] (int e) |
| |
| Color & | operator+= (const Color &other) |
| |
| Color & | operator-= (const Color &other) |
| |
| Color & | operator*= (float m) |
| |
| Color & | operator/= (float m) |
| |
| constexpr Color | scaledAlpha (float m) const noexcept |
| |
|
| uint8_t | r |
| |
| uint8_t | g |
| |
| uint8_t | b |
| |
| uint8_t | a |
| |
◆ Color() [1/8]
◆ Color() [2/8]
◆ Color() [3/8]
| MR::Color::Color |
( |
int | r, |
|
|
int | g, |
|
|
int | b, |
|
|
int | a ) |
|
inlineconstexprnoexcept |
◆ Color() [4/8]
| MR::Color::Color |
( |
int | r, |
|
|
int | g, |
|
|
int | b ) |
|
inlineconstexprnoexcept |
◆ Color() [5/8]
| MR::Color::Color |
( |
float | r, |
|
|
float | g, |
|
|
float | b, |
|
|
float | a ) |
|
inlineconstexprnoexcept |
◆ Color() [6/8]
| MR::Color::Color |
( |
float | r, |
|
|
float | g, |
|
|
float | b ) |
|
inlineconstexprnoexcept |
◆ Color() [7/8]
template<typename T >
| MR::Color::Color |
( |
const Vector3< T > & | vec | ) |
|
|
inlineexplicitconstexprnoexcept |
◆ Color() [8/8]
template<typename T >
| MR::Color::Color |
( |
const Vector4< T > & | vec | ) |
|
|
inlineexplicitconstexprnoexcept |
◆ black()
| static constexpr Color MR::Color::black |
( |
| ) |
|
|
inlinestaticconstexprnoexcept |
◆ blue()
| static constexpr Color MR::Color::blue |
( |
| ) |
|
|
inlinestaticconstexprnoexcept |
◆ brown()
| static constexpr Color MR::Color::brown |
( |
| ) |
|
|
inlinestaticconstexprnoexcept |
◆ getUInt32()
| unsigned int MR::Color::getUInt32 |
( |
| ) |
const |
|
inlineconstexprnoexcept |
◆ gray()
| static constexpr Color MR::Color::gray |
( |
| ) |
|
|
inlinestaticconstexprnoexcept |
◆ green()
| static constexpr Color MR::Color::green |
( |
| ) |
|
|
inlinestaticconstexprnoexcept |
◆ operator Vector4< T >()
template<typename T >
| MR::Color::operator Vector4< T > |
( |
| ) |
const |
|
inlineexplicitconstexprnoexcept |
◆ operator*=()
| Color & MR::Color::operator*= |
( |
float | m | ) |
|
|
inline |
◆ operator+=()
| Color & MR::Color::operator+= |
( |
const Color & | other | ) |
|
|
inline |
◆ operator-=()
| Color & MR::Color::operator-= |
( |
const Color & | other | ) |
|
|
inline |
◆ operator/=()
| Color & MR::Color::operator/= |
( |
float | m | ) |
|
|
inline |
◆ operator[]() [1/2]
| uint8_t & MR::Color::operator[] |
( |
int | e | ) |
|
|
inline |
◆ operator[]() [2/2]
| const uint8_t & MR::Color::operator[] |
( |
int | e | ) |
const |
|
inline |
◆ purple()
| static constexpr Color MR::Color::purple |
( |
| ) |
|
|
inlinestaticconstexprnoexcept |
◆ red()
| static constexpr Color MR::Color::red |
( |
| ) |
|
|
inlinestaticconstexprnoexcept |
◆ scaledAlpha()
| Color MR::Color::scaledAlpha |
( |
float | m | ) |
const |
|
inlineconstexprnoexcept |
◆ transparent()
| static constexpr Color MR::Color::transparent |
( |
| ) |
|
|
inlinestaticconstexprnoexcept |
◆ valToUint8()
template<typename T >
| static constexpr uint8_t MR::Color::valToUint8 |
( |
T | val | ) |
|
|
inlinestaticconstexprnoexcept |
◆ white()
| static constexpr Color MR::Color::white |
( |
| ) |
|
|
inlinestaticconstexprnoexcept |
◆ yellow()
| static constexpr Color MR::Color::yellow |
( |
| ) |
|
|
inlinestaticconstexprnoexcept |
The documentation for this struct was generated from the following file: