Castor3D 0.16.0
Multiplatform 3D engine
|
#include <ColourComponent.hpp>
Public Member Functions | |
ColourComponent ()=default | |
CU_API | ColourComponent (HdrColourComponent const &rhs, float gamma=2.2f) |
Constructor from HDR component. | |
ColourComponent (float value) | |
Specified constructor. | |
ColourComponent & | operator= (float rhs) |
Assignment operator from float. | |
ColourComponent & | operator= (double rhs) |
Assignment operator from double. | |
ColourComponent & | operator= (long double rhs) |
Assignment operator from long double. | |
ColourComponent & | operator= (int8_t rhs) |
Assignment operator from int8_t. | |
ColourComponent & | operator= (uint8_t rhs) |
Assignment operator from uint8_t. | |
ColourComponent & | operator= (int16_t rhs) |
Assignment operator from int16_t. | |
ColourComponent & | operator= (uint16_t rhs) |
Assignment operator from uint16_t. | |
ColourComponent & | operator= (int32_t rhs) |
Assignment operator from int32_t. | |
ColourComponent & | operator= (uint32_t rhs) |
Assignment operator from uint32_t. | |
ColourComponent & | operator= (int64_t rhs) |
Assignment operator from int64_t. | |
ColourComponent & | 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 | |
ColourComponent & | operator+= (ColourComponent const &rhs) |
Addition assignment operator. | |
ColourComponent & | operator-= (ColourComponent const &rhs) |
Substraction assignment operator. | |
ColourComponent & | operator*= (ColourComponent const &rhs) |
Multiplication assignment operator. | |
ColourComponent & | operator/= (ColourComponent const &rhs) |
Division assignment operator. | |
template<typename T > | |
ColourComponent & | operator+= (T const &rhs) |
Addition assignment operator. | |
template<typename T > | |
ColourComponent & | operator-= (T const &rhs) |
Substraction assignment operator. | |
template<typename T > | |
ColourComponent & | operator*= (T const &rhs) |
Multiplication assignment operator. | |
template<typename T > | |
ColourComponent & | 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 HDR component.
[in] | rhs | The HDR 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 |
References value().
|
inline |
Addition assignment operator.
[in] | rhs | The value to add |
|
inline |
Addition assignment operator.
[in] | rhs | The value to add |
References value().
|
inline |
Substraction assignment operator.
[in] | rhs | The value to subtract |
|
inline |
Substraction assignment operator.
[in] | rhs | The value to subtract |
References value().
|
inline |
Division assignment operator.
[in] | rhs | The value to divide |
|
inline |
Division assignment operator.
[in] | rhs | The value to divide |
References value().
|
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(), convertTo(), operator*=(), operator+=(), operator-=(), operator/=(), and castor3d::prepareChunkData().