0.9.9 API documenation
color_space_YCoCg.hpp
Go to the documentation of this file.
1 
13 #pragma once
14 
15 // Dependency:
16 #include "../glm.hpp"
17 
18 #ifndef GLM_ENABLE_EXPERIMENTAL
19 # error "GLM: GLM_GTX_color_space_YCoCg is an experimetal extension and may change in the future. Use #define GLM_ENABLE_EXPERIMENTAL before including it, if you really want to use it."
20 #endif
21 
22 #if GLM_MESSAGES == GLM_MESSAGES_ENABLED && !defined(GLM_EXT_INCLUDED)
23 # pragma message("GLM: GLM_GTX_color_space_YCoCg extension included")
24 #endif
25 
26 namespace glm
27 {
30 
33  template <typename T, precision P>
34  GLM_FUNC_DECL tvec3<T, P> rgb2YCoCg(
35  tvec3<T, P> const & rgbColor);
36 
39  template <typename T, precision P>
40  GLM_FUNC_DECL tvec3<T, P> YCoCg2rgb(
41  tvec3<T, P> const & YCoCgColor);
42 
46  template <typename T, precision P>
47  GLM_FUNC_DECL tvec3<T, P> rgb2YCoCgR(
48  tvec3<T, P> const & rgbColor);
49 
53  template <typename T, precision P>
54  GLM_FUNC_DECL tvec3<T, P> YCoCgR2rgb(
55  tvec3<T, P> const & YCoCgColor);
56 
58 }//namespace glm
59 
60 #include "color_space_YCoCg.inl"
GLM_FUNC_DECL tvec3< T, P > YCoCg2rgb(tvec3< T, P > const &YCoCgColor)
Convert a color from YCoCg color space to RGB color space.
GLM_FUNC_DECL tvec3< T, P > rgb2YCoCgR(tvec3< T, P > const &rgbColor)
Convert a color from RGB color space to YCoCgR color space.
GLM_FUNC_DECL tvec3< T, P > rgb2YCoCg(tvec3< T, P > const &rgbColor)
Convert a color from RGB color space to YCoCg color space.
Definition: _noise.hpp:11
GLM_FUNC_DECL tvec3< T, P > rgbColor(tvec3< T, P > const &hsvValue)
Converts a color from HSV color space to its color in RGB color space.
GLM_FUNC_DECL tvec3< T, P > YCoCgR2rgb(tvec3< T, P > const &YCoCgColor)
Convert a color from YCoCgR color space to RGB color space.