0.9.6
color_space_YCoCg.hpp
Go to the documentation of this file.
1 
38 #pragma once
39 
40 // Dependency:
41 #include "../glm.hpp"
42 
43 #if(defined(GLM_MESSAGES) && !defined(GLM_EXT_INCLUDED))
44 # pragma message("GLM: GLM_GTX_color_space_YCoCg extension included")
45 #endif
46 
47 namespace glm
48 {
51 
54  template <typename T, precision P>
55  GLM_FUNC_DECL tvec3<T, P> rgb2YCoCg(
56  tvec3<T, P> const & rgbColor);
57 
60  template <typename T, precision P>
61  GLM_FUNC_DECL tvec3<T, P> YCoCg2rgb(
62  tvec3<T, P> const & YCoCgColor);
63 
67  template <typename T, precision P>
68  GLM_FUNC_DECL tvec3<T, P> rgb2YCoCgR(
69  tvec3<T, P> const & rgbColor);
70 
74  template <typename T, precision P>
75  GLM_FUNC_DECL tvec3<T, P> YCoCgR2rgb(
76  tvec3<T, P> const & YCoCgColor);
77 
79 }//namespace glm
80 
81 #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:31
GLM_FUNC_DECL tvec3< T, P > YCoCgR2rgb(tvec3< T, P > const &YCoCgColor)
Convert a color from YCoCgR color space to RGB color space.
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.