Sha256: b6291c46ae639afd7f990d41add026abb9a1e46b6fe30209436cb9b8b5986614
Contents?: true
Size: 1.6 KB
Versions: 21
Compression:
Stored size: 1.6 KB
Contents
/// @ref gtx_color_space_YCoCg /// @file glm/gtx/color_space_YCoCg.hpp /// /// @see core (dependence) /// /// @defgroup gtx_color_space_YCoCg GLM_GTX_color_space_YCoCg /// @ingroup gtx /// /// @brief RGB to YCoCg conversions and operations /// /// <glm/gtx/color_space_YCoCg.hpp> need to be included to use these functionalities. #pragma once // Dependency: #include "../glm.hpp" #if GLM_MESSAGES == GLM_MESSAGES_ENABLED && !defined(GLM_EXT_INCLUDED) # pragma message("GLM: GLM_GTX_color_space_YCoCg extension included") #endif namespace glm { /// @addtogroup gtx_color_space_YCoCg /// @{ /// Convert a color from RGB color space to YCoCg color space. /// @see gtx_color_space_YCoCg template <typename T, precision P> GLM_FUNC_DECL tvec3<T, P> rgb2YCoCg( tvec3<T, P> const & rgbColor); /// Convert a color from YCoCg color space to RGB color space. /// @see gtx_color_space_YCoCg template <typename T, precision P> GLM_FUNC_DECL tvec3<T, P> YCoCg2rgb( tvec3<T, P> const & YCoCgColor); /// Convert a color from RGB color space to YCoCgR color space. /// @see "YCoCg-R: A Color Space with RGB Reversibility and Low Dynamic Range" /// @see gtx_color_space_YCoCg template <typename T, precision P> GLM_FUNC_DECL tvec3<T, P> rgb2YCoCgR( tvec3<T, P> const & rgbColor); /// Convert a color from YCoCgR color space to RGB color space. /// @see "YCoCg-R: A Color Space with RGB Reversibility and Low Dynamic Range" /// @see gtx_color_space_YCoCg template <typename T, precision P> GLM_FUNC_DECL tvec3<T, P> YCoCgR2rgb( tvec3<T, P> const & YCoCgColor); /// @} }//namespace glm #include "color_space_YCoCg.inl"
Version data entries
21 entries across 21 versions & 1 rubygems