![]() |
MAGE
v0.171.0
Matthias Advanced Game Engine
|
#include <spectrum.hpp>
Public Member Functions | |
| constexpr | SRGBA (F32 rgba=0.0f) noexcept |
| constexpr | SRGBA (F32 r, F32 g, F32 b, F32 a=1.0f) noexcept |
| constexpr | SRGBA (const SRGBA &rgba) noexcept=default |
| constexpr | SRGBA (SRGBA &&rgba) noexcept=default |
| constexpr | SRGBA (const SRGB &srgb, F32 a=1.0f) noexcept |
| SRGBA (const RGBA &rgba) noexcept | |
| constexpr | SRGBA (F32x4 v) noexcept |
| ~SRGBA ()=default | |
| SRGBA & | operator= (const SRGBA &rgba) noexcept=default |
| SRGBA & | operator= (SRGBA &&rgba) noexcept=default |
| F32 & | R () noexcept |
| constexpr F32 | R () const noexcept |
| F32 & | G () noexcept |
| constexpr F32 | G () const noexcept |
| F32 & | B () noexcept |
| constexpr F32 | B () const noexcept |
| F32 & | A () noexcept |
| constexpr F32 | A () const noexcept |
Public Member Functions inherited from mage::Array< T, N, A, typename > | |
| constexpr | Array () noexcept |
| constexpr | Array (const T &value) noexcept |
| template<typename... ArgsT, typename = std::enable_if_t< (N == sizeof...(ArgsT)) >> | |
| constexpr | Array (ArgsT &&... args) noexcept |
| template<std::size_t FromN> | |
| constexpr | Array (const Array< T, FromN, A > &a) noexcept |
| template<std::size_t FromN, std::size_t FromA> | |
| constexpr | Array (const Array< T, FromN, FromA > &a) noexcept |
| template<std::size_t FromN, typename... ArgsT> | |
| constexpr | Array (const Array< T, FromN, A > &a, ArgsT &&... args) noexcept |
| template<std::size_t FromN, std::size_t FromA, typename... ArgsT> | |
| constexpr | Array (const Array< T, FromN, FromA > &a, ArgsT &&... args) noexcept |
| constexpr | Array (const Array &a) noexcept=default |
| constexpr | Array (Array &&a) noexcept=default |
| template<typename FromT , std::size_t FromA, typename = std::enable_if_t< std::is_convertible_v< FromT, T > >> | |
| constexpr | Array (const Array< FromT, N, FromA > &a) noexcept |
| ~Array ()=default | |
| Array & | operator= (const Array &a) noexcept=default |
| Array & | operator= (Array &&a) noexcept=default |
Additional Inherited Members | |
Static Public Attributes inherited from mage::Array< T, N, A, typename > | |
| static constexpr std::size_t | s_size = N |
A struct of sRGBA color spectra.
|
explicitnoexcept |
Constructs a sRGBA spectrum from the given spectrum components.
| [in] | rgba | The red, green and blue and alpha component. |
Constructs a sRGBA spectrum from the given spectrum components.
| [in] | r | The red component. |
| [in] | g | The green component. |
| [in] | b | The blue component. |
| [in] | a | The alpha component. |
|
defaultnoexcept |
Constructs a sRGBA spectrum from the given sRGBA spectrum.
| [in] | rgba | A reference to the sRGBA spectrum to copy. |
|
defaultnoexcept |
Constructs a sRGBA spectrum by moving the given sRGBA spectrum.
| [in] | rgba | A reference to the sRGBA spectrum to move. |
Constructs a sRGBA spectrum from the given sRGB spectrum.
| [in] | srgb | A reference to the sRGB spectrum. |
| [in] | a | The alpha component. |
|
explicitnoexcept |
|
explicitnoexcept |
Constructs a sRGBA spectrum from the given components.
| [in] | v | The components. |
|
default |
Destructs this sRGBA spectrum.
|
noexcept |
Returns the alpha component of this sRGBA spectrum.
|
noexcept |
Returns the alpha component of this sRGBA spectrum.
|
noexcept |
Returns the blue component of this sRGBA spectrum.
|
noexcept |
Returns the blue component of this sRGBA spectrum.
|
noexcept |
Returns the green component of this sRGBA spectrum.
|
noexcept |
Returns the green component of this sRGBA spectrum.
Copies the given sRGBA spectrum to this sRGBA spectrum.
| [in] | rgba | A reference to the sRGBA spectrum to copy. |
Moves the given sRGBA spectrum to this sRGBA spectrum.
| [in] | rgba | A reference to the sRGBA spectrum to move. |
|
noexcept |
Returns the red component of this sRGBA spectrum.
|
noexcept |
Returns the red component of this sRGBA spectrum.