- Main Page
- Related Pages
- Modules
- Files

- File List

color_space.hpp
Go to the documentation of this file.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38 #ifndef GLM_GTX_color_space
39 #define GLM_GTX_color_space GLM_VERSION
40
41 // Dependency:
42 #include "../glm.hpp"
43
44 #if(defined(GLM_MESSAGES) && !defined(glm_ext))
45 # pragma message("GLM: GLM_GTX_color_space extension included")
46 #endif
47
48 namespace glm
49 {
52
55 template <typename valType>
56 detail::tvec3<valType> rgbColor(
57 detail::tvec3<valType> const & hsvValue);
58
61 template <typename valType>
62 detail::tvec3<valType> hsvColor(
63 detail::tvec3<valType> const & rgbValue);
64
67 template <typename valType>
68 detail::tmat4x4<valType> saturation(
69 valType const s);
70
73 template <typename valType>
74 detail::tvec3<valType> saturation(
75 valType const s,
76 detail::tvec3<valType> const & color);
77
80 template <typename valType>
81 detail::tvec4<valType> saturation(
82 valType const s,
83 detail::tvec4<valType> const & color);
84
87 template <typename valType>
88 valType luminosity(
89 detail::tvec3<valType> const & color);
90
92 }//namespace glm
93
94 #include "color_space.inl"
95
96 #endif//GLM_GTX_color_space