|
|
@ -30,19 +30,23 @@ namespace glm |
|
|
|
/// @addtogroup gtc_color_space
|
|
|
|
/// @addtogroup gtc_color_space
|
|
|
|
/// @{
|
|
|
|
/// @{
|
|
|
|
|
|
|
|
|
|
|
|
/// Convert a linear color to sRGB color using a standard gamma correction
|
|
|
|
/// Convert a linear color to sRGB color using a standard gamma correction.
|
|
|
|
|
|
|
|
/// IEC 61966-2-1:1999 specification https://www.w3.org/Graphics/Color/srgb
|
|
|
|
template <typename T, precision P, template <typename, precision> class vecType> |
|
|
|
template <typename T, precision P, template <typename, precision> class vecType> |
|
|
|
GLM_FUNC_DECL vecType<T, P> convertLinearToSRGB(vecType<T, P> const & ColorLinear); |
|
|
|
GLM_FUNC_DECL vecType<T, P> convertLinearToSRGB(vecType<T, P> const & ColorLinear); |
|
|
|
|
|
|
|
|
|
|
|
/// Convert a linear color to sRGB color using a custom gamma correction
|
|
|
|
/// Convert a linear color to sRGB color using a custom gamma correction.
|
|
|
|
|
|
|
|
/// IEC 61966-2-1:1999 specification https://www.w3.org/Graphics/Color/srgb
|
|
|
|
template <typename T, precision P, template <typename, precision> class vecType> |
|
|
|
template <typename T, precision P, template <typename, precision> class vecType> |
|
|
|
GLM_FUNC_DECL vecType<T, P> convertLinearToSRGB(vecType<T, P> const & ColorLinear, T Gamma); |
|
|
|
GLM_FUNC_DECL vecType<T, P> convertLinearToSRGB(vecType<T, P> const & ColorLinear, T Gamma); |
|
|
|
|
|
|
|
|
|
|
|
/// Convert a sRGB color to linear color using a standard gamma correction
|
|
|
|
/// Convert a sRGB color to linear color using a standard gamma correction.
|
|
|
|
|
|
|
|
/// IEC 61966-2-1:1999 specification https://www.w3.org/Graphics/Color/srgb
|
|
|
|
template <typename T, precision P, template <typename, precision> class vecType> |
|
|
|
template <typename T, precision P, template <typename, precision> class vecType> |
|
|
|
GLM_FUNC_DECL vecType<T, P> convertSRGBToLinear(vecType<T, P> const & ColorSRGB); |
|
|
|
GLM_FUNC_DECL vecType<T, P> convertSRGBToLinear(vecType<T, P> const & ColorSRGB); |
|
|
|
|
|
|
|
|
|
|
|
/// Convert a sRGB color to linear color using a custom gamma correction
|
|
|
|
/// Convert a sRGB color to linear color using a custom gamma correction.
|
|
|
|
|
|
|
|
// IEC 61966-2-1:1999 specification https://www.w3.org/Graphics/Color/srgb
|
|
|
|
template <typename T, precision P, template <typename, precision> class vecType> |
|
|
|
template <typename T, precision P, template <typename, precision> class vecType> |
|
|
|
GLM_FUNC_DECL vecType<T, P> convertSRGBToLinear(vecType<T, P> const & ColorSRGB, T Gamma); |
|
|
|
GLM_FUNC_DECL vecType<T, P> convertSRGBToLinear(vecType<T, P> const & ColorSRGB, T Gamma); |
|
|
|
|
|
|
|
|
|
|
|