![]() |
MAGE
v0.171.0
Matthias Advanced Game Engine
|
#include <spectrum.hpp>
Public Member Functions | |
constexpr | SRGB (F32 srgb=0.0f) noexcept |
constexpr | SRGB (F32 r, F32 g, F32 b) noexcept |
constexpr | SRGB (const SRGB &srgb) noexcept=default |
constexpr | SRGB (SRGB &&srgb) noexcept=default |
SRGB (const RGB &rgb) noexcept | |
constexpr | SRGB (F32x3 v) noexcept |
~SRGB ()=default | |
SRGB & | operator= (const SRGB &srgb) noexcept=default |
SRGB & | operator= (SRGB &&srgb) 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 |
![]() | |
constexpr | Array () noexcept |
constexpr | Array (const F32 &value) noexcept |
constexpr | Array (ArgsT &&... args) noexcept |
constexpr | Array (const Array< F32, FromN, alignof(F32) > &a) noexcept |
constexpr | Array (const Array< F32, FromN, FromA > &a) noexcept |
constexpr | Array (const Array< F32, FromN, alignof(F32) > &a, ArgsT &&... args) noexcept |
constexpr | Array (const Array< F32, FromN, FromA > &a, ArgsT &&... args) noexcept |
constexpr | Array (const Array &a) noexcept=default |
constexpr | Array (Array &&a) noexcept=default |
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 constexpr std::size_t | s_size |
A struct of sRGB color spectra.
|
explicitnoexcept |
Constructs a sRGB spectrum from the given spectrum components.
[in] | srgb | The red, green and blue component. |
Constructs a sRGB spectrum from the given spectrum components.
[in] | r | The red component. |
[in] | g | The green component. |
[in] | b | The blue component. |
|
defaultnoexcept |
Constructs a sRGB spectrum from the given sRGB spectrum.
[in] | srgb | A reference to the sRGB spectrum to copy. |
|
defaultnoexcept |
Constructs a sRGB spectrum by moving the given sRGB spectrum.
[in] | srgb | A reference to the sRGB spectrum to move. |
|
explicitnoexcept |
|
explicitnoexcept |
Constructs a sRGB spectrum from the given components.
[in] | v | The components. |
|
default |
Destructs this sRGB spectrum.
|
noexcept |
Returns the blue component of this sRGB spectrum.
|
noexcept |
Returns the blue component of this sRGB spectrum.
|
noexcept |
Returns the green component of this sRGB spectrum.
|
noexcept |
Returns the green component of this sRGB spectrum.
Copies the given sRGB spectrum to this sRGB spectrum.
[in] | srgb | A reference to the sRGB spectrum to copy. |
Moves the given sRGB spectrum to this sRGB spectrum.
[in] | srgb | A reference to the sRGB spectrum to move. |
|
noexcept |
Returns the red component of this sRGB spectrum.
|
noexcept |
Returns the red component of this sRGB spectrum.