Castor3D 0.16.0
Multiplatform 3D engine
|
#include <HdrColourComponent.hpp>
Public Member Functions | |
HdrColourComponent ()=default | |
CU_API | HdrColourComponent (ColourComponent const &rhs, float gamma=2.2f) |
Constructor from SRGB component. | |
HdrColourComponent (float value) | |
Specified constructor. | |
HdrColourComponent & | operator= (float rhs) |
Assignment operator from float. | |
HdrColourComponent & | operator= (double rhs) |
Assignment operator from double. | |
HdrColourComponent & | operator= (long double rhs) |
Assignment operator from long double. | |
HdrColourComponent & | operator= (int8_t rhs) |
Assignment operator from int8_t. | |
HdrColourComponent & | operator= (uint8_t rhs) |
Assignment operator from uint8_t. | |
HdrColourComponent & | operator= (int16_t rhs) |
Assignment operator from int16_t. | |
HdrColourComponent & | operator= (uint16_t rhs) |
Assignment operator from uint16_t. | |
HdrColourComponent & | operator= (int32_t rhs) |
Assignment operator from int32_t. | |
HdrColourComponent & | operator= (uint32_t rhs) |
Assignment operator from uint32_t. | |
HdrColourComponent & | operator= (int64_t rhs) |
Assignment operator from int64_t. | |
HdrColourComponent & | operator= (uint64_t rhs) |
Assignment operator from uint64_t. | |
int8_t & | convertTo (int8_t &v) const |
int8_t conversion operator | |
uint8_t & | convertTo (uint8_t &v) const |
uint8_t conversion operator | |
int16_t & | convertTo (int16_t &v) const |
int16_t conversion operator | |
uint16_t & | convertTo (uint16_t &v) const |
uint16_t conversion operator | |
int32_t & | convertTo (int32_t &v) const |
int32_t conversion operator | |
uint32_t & | convertTo (uint32_t &v) const |
uint32_t conversion operator | |
int64_t & | convertTo (int64_t &v) const |
int64_t conversion operator | |
uint64_t & | convertTo (uint64_t &v) const |
uint64_t conversion operator | |
float & | convertTo (float &v) const |
float conversion operator | |
double & | convertTo (double &v) const |
float conversion operator | |
long double & | convertTo (long double &v) const |
float conversion operator | |
HdrColourComponent & | operator+= (HdrColourComponent const &rhs) |
addition assignment operator | |
HdrColourComponent & | operator-= (HdrColourComponent const &rhs) |
Substraction assignment operator. | |
HdrColourComponent & | operator*= (HdrColourComponent const &rhs) |
Multiplication assignment operator. | |
HdrColourComponent & | operator/= (HdrColourComponent const &rhs) |
Division assignment operator. | |
template<typename T > | |
HdrColourComponent & | operator+= (T const &rhs) |
addition assignment operator | |
template<typename T > | |
HdrColourComponent & | operator-= (T const &rhs) |
Substraction assignment operator. | |
template<typename T > | |
HdrColourComponent & | operator*= (T const &rhs) |
Multiplication assignment operator. | |
template<typename T > | |
HdrColourComponent & | operator/= (T const &rhs) |
Division assignment operator. | |
operator float () const | |
Implicit cast operator. | |
float const & | value () const |
Retrieves the component value. | |
float & | value () |
Retrieves the component value. | |
|
default |
|
explicit |
Constructor from SRGB component.
[in] | rhs | The SRGB component value. |
[in] | gamma | The gamma correction value. |
|
inlineexplicit |
Specified constructor.
[in] | value | The component value |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Implicit cast operator.
|
inline |
Multiplication assignment operator.
[in] | rhs | The value to multiply |
|
inline |
Multiplication assignment operator.
[in] | rhs | The value to multiply |
|
inline |
addition assignment operator
[in] | rhs | The value to add |
|
inline |
addition assignment operator
[in] | rhs | The value to add |
|
inline |
Substraction assignment operator.
[in] | rhs | The value to subtract |
|
inline |
Substraction assignment operator.
[in] | rhs | The value to subtract |
|
inline |
Division assignment operator.
[in] | rhs | The value to divide |
|
inline |
Division assignment operator.
[in] | rhs | The value to divide |
|
inline |
Assignment operator from double.
[in] | rhs | The component value, must be between 0.0 and 1.0 |
|
inline |
Assignment operator from float.
[in] | rhs | The component value, must be between 0.0f and 1.0f |
|
inline |
Assignment operator from int16_t.
[in] | rhs | The component value, must be between 0 and 255 |
|
inline |
Assignment operator from int32_t.
[in] | rhs | The component value, must be between 0 and 255 |
|
inline |
Assignment operator from int64_t.
[in] | rhs | The component value, must be between 0 and 255 |
|
inline |
Assignment operator from int8_t.
[in] | rhs | The component value |
|
inline |
Assignment operator from long double.
[in] | rhs | The component value, must be between 0.0 and 1.0 |
|
inline |
Assignment operator from uint16_t.
[in] | rhs | The component value, must be between 0 and 255 |
|
inline |
Assignment operator from uint32_t.
[in] | rhs | The component value, must be between 0 and 255 |
|
inline |
Assignment operator from uint64_t.
[in] | rhs | The component value, must be between 0 and 255 |
|
inline |
Assignment operator from uint8_t.
[in] | rhs | The component value |
|
inline |
Retrieves the component value.
|
inline |
Retrieves the component value.
Referenced by convertTo(), convertTo(), convertTo(), convertTo(), convertTo(), convertTo(), convertTo(), convertTo(), convertTo(), convertTo(), and convertTo().