38 #ifndef glm_gtx_color_space_YCoCg
39 #define glm_gtx_color_space_YCoCg
44 #if(defined(GLM_MESSAGES) && !defined(GLM_EXT_INCLUDED))
45 # pragma message("GLM: GLM_GTX_color_space_YCoCg extension included")
55 template <
typename T, precision P>
57 detail::tvec3<T, P>
const &
rgbColor);
61 template <
typename T, precision P>
63 detail::tvec3<T, P>
const & YCoCgColor);
68 template <
typename T, precision P>
70 detail::tvec3<T, P>
const &
rgbColor);
75 template <
typename T, precision P>
77 detail::tvec3<T, P>
const & YCoCgColor);
82 #include "color_space_YCoCg.inl"
84 #endif//glm_gtx_color_space_YCoCg
detail::tvec3< T, P > YCoCgR2rgb(detail::tvec3< T, P > const &YCoCgColor)
Convert a color from YCoCgR color space to RGB color space.
detail::tvec3< T, P > rgb2YCoCgR(detail::tvec3< T, P > const &rgbColor)
Convert a color from RGB color space to YCoCgR color space.
detail::tvec3< T, P > YCoCg2rgb(detail::tvec3< T, P > const &YCoCgColor)
Convert a color from YCoCg color space to RGB color space.
detail::tvec3< T, P > rgbColor(detail::tvec3< T, P > const &hsvValue)
Converts a color from HSV color space to its color in RGB color space.
detail::tvec3< T, P > rgb2YCoCg(detail::tvec3< T, P > const &rgbColor)
Convert a color from RGB color space to YCoCg color space.