GLM 0.9.5

- Main Page
- Related Pages
- Modules
- Namespaces
- Files

Functions
GLM_GTX_color_space_YCoCg
GTX Extensions (Experimental)

## Functions
template<typename T , precision P>
detail::tvec3< T, P > | rgb2YCoCg (detail::tvec3< T, P > const &rgbColor)
template<typename T , precision P>
detail::tvec3< T, P > | rgb2YCoCgR (detail::tvec3< T, P > const &rgbColor)
template<typename T , precision P>
detail::tvec3< T, P > | YCoCg2rgb (detail::tvec3< T, P > const &YCoCgColor)
template<typename T , precision P>
detail::tvec3< T, P > | YCoCgR2rgb (detail::tvec3< T, P > const &YCoCgColor)

## Detailed Description

RGB to YCoCg conversions and operations.

<glm/gtx/color_space_YCoCg.hpp> need to be included to use these functionalities.

## Function Documentation

detail::tvec3<T, P> glm::rgb2YCoCg | ( | detail::tvec3< T, P > const & | rgbColor | ) |

Convert a color from RGB color space to YCoCg color space.

See Also
  GLM_GTX_color_space_YCoCg

detail::tvec3<T, P> glm::rgb2YCoCgR | ( | detail::tvec3< T, P > const & | rgbColor | ) |

Convert a color from RGB color space to YCoCgR color space.

See Also
  "YCoCg-R: A Color Space with RGB Reversibility and Low Dynamic Range"
  GLM_GTX_color_space_YCoCg

detail::tvec3<T, P> glm::YCoCg2rgb | ( | detail::tvec3< T, P > const & | YCoCgColor | ) |

Convert a color from YCoCg color space to RGB color space.

See Also
  GLM_GTX_color_space_YCoCg

detail::tvec3<T, P> glm::YCoCgR2rgb | ( | detail::tvec3< T, P > const & | YCoCgColor | ) |

Convert a color from YCoCgR color space to RGB color space.

See Also
  "YCoCg-R: A Color Space with RGB Reversibility and Low Dynamic Range"
  GLM_GTX_color_space_YCoCg