18 #ifndef GLM_ENABLE_EXPERIMENTAL
19 # error "GLM: GLM_GTX_color_space_YCoCg is an experimental extension and may change in the future. Use #define GLM_ENABLE_EXPERIMENTAL before including it, if you really want to use it."
22 #if GLM_MESSAGES == GLM_MESSAGES_ENABLED && !defined(GLM_EXT_INCLUDED)
23 # pragma message("GLM: GLM_GTX_color_space_YCoCg extension included")
33 template<
typename T, qualifier P>
39 template<
typename T, qualifier P>
41 vec<3, T, P>
const & YCoCgColor);
46 template<
typename T, qualifier P>
53 template<
typename T, qualifier P>
55 vec<3, T, P>
const & YCoCgColor);
60 #include "color_space_YCoCg.inl"
GLM_FUNC_DECL vec< 3, T, P > YCoCg2rgb(vec< 3, T, P > const &YCoCgColor)
Convert a color from YCoCg color space to RGB color space.
GLM_FUNC_DECL vec< 3, T, P > rgbColor(vec< 3, T, P > const &hsvValue)
Converts a color from HSV color space to its color in RGB color space.
GLM_FUNC_DECL vec< 3, T, P > rgb2YCoCg(vec< 3, T, P > const &rgbColor)
Convert a color from RGB color space to YCoCg color space.
GLM_FUNC_DECL vec< 3, T, P > YCoCgR2rgb(vec< 3, T, P > const &YCoCgColor)
Convert a color from YCoCgR color space to RGB color space.
GLM_FUNC_DECL vec< 3, T, P > rgb2YCoCgR(vec< 3, T, P > const &rgbColor)
Convert a color from RGB color space to YCoCgR color space.