| 0.9.7

- Main Page
- Modules
- Files

- File List

gtc/color_space.hpp
Go to the documentation of this file.
1
43 #pragma once
44
45 // Dependencies
46 #include "../detail/setup.hpp"
47 #include "../detail/precision.hpp"
48 #include "../exponential.hpp"
49 #include "../vec3.hpp"
50 #include "../vec4.hpp"
51 #include <limits>
52
53 #if(defined(GLM_MESSAGES) && !defined(GLM_EXT_INCLUDED))
54 # pragma message("GLM: GLM_GTC_color_space extension included")
55 #endif
56
57 namespace glm
58 {
61
63 template <typename T, precision P, template <typename, precision> class vecType>
64 GLM_FUNC_DECL vecType<T, P> convertLinearToSRGB(vecType<T, P> const & ColorLinear);
65
67 template <typename T, precision P, template <typename, precision> class vecType>
68 GLM_FUNC_DECL vecType<T, P> convertLinearToSRGB(vecType<T, P> const & ColorLinear, T Gamma);
69
71 template <typename T, precision P, template <typename, precision> class vecType>
72 GLM_FUNC_DECL vecType<T, P> convertSRGBToLinear(vecType<T, P> const & ColorSRGB);
73
75 template <typename T, precision P, template <typename, precision> class vecType>
76 GLM_FUNC_DECL vecType<T, P> convertSRGBToLinear(vecType<T, P> const & ColorSRGB, T Gamma);
77
79 } //namespace glm
80
81 #include "color_space.inl"
glm::convertLinearToSRGB
GLM_FUNC_DECL vecType< T, P > convertLinearToSRGB(vecType< T, P > const &ColorLinear, T Gamma)
Convert a linear color to sRGB color using a custom gamma correction.
glm
Definition: _noise.hpp:40
glm::convertSRGBToLinear
GLM_FUNC_DECL vecType< T, P > convertSRGBToLinear(vecType< T, P > const &ColorSRGB, T Gamma)
Convert a sRGB color to linear color using a custom gamma correction.