- Main Page
- Related Pages
- Modules
- Files

- File List

color_space_YCoCg.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_YCoCg
39 #define glm_gtx_color_space_YCoCg 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_YCoCg extension included")
46 #endif
47
48 namespace glm
49 {
52
55 template <typename valType>
56 detail::tvec3<valType> rgb2YCoCg(
57 detail::tvec3<valType> const & rgbColor);
58
61 template <typename valType>
62 detail::tvec3<valType> YCoCg2rgb(
63 detail::tvec3<valType> const & YCoCgColor);
64
68 template <typename valType>
69 detail::tvec3<valType> rgb2YCoCgR(
70 detail::tvec3<valType> const & rgbColor);
71
75 template <typename valType>
76 detail::tvec3<valType> YCoCgR2rgb(
77 detail::tvec3<valType> const & YCoCgColor);
78
80 }//namespace glm
81
82 #include "color_space_YCoCg.inl"
83
84 #endif//glm_gtx_color_space_YCoCg