summaryrefslogtreecommitdiffstats
path: root/external/include/glm/gtc/color_space.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'external/include/glm/gtc/color_space.hpp')
-rw-r--r--external/include/glm/gtc/color_space.hpp30
1 files changed, 15 insertions, 15 deletions
diff --git a/external/include/glm/gtc/color_space.hpp b/external/include/glm/gtc/color_space.hpp
index 08ece8f..56cbc8f 100644
--- a/external/include/glm/gtc/color_space.hpp
+++ b/external/include/glm/gtc/color_space.hpp
@@ -7,15 +7,15 @@
/// @defgroup gtc_color_space GLM_GTC_color_space
/// @ingroup gtc
///
-/// @brief Allow to perform bit operations on integer values
+/// Include <glm/gtc/color_space.hpp> to use the features of this extension.
///
-/// <glm/gtc/color.hpp> need to be included to use these functionalities.
+/// Allow to perform bit operations on integer values
#pragma once
// Dependencies
#include "../detail/setup.hpp"
-#include "../detail/precision.hpp"
+#include "../detail/qualifier.hpp"
#include "../exponential.hpp"
#include "../vec3.hpp"
#include "../vec4.hpp"
@@ -31,24 +31,24 @@ namespace glm
/// @{
/// Convert a linear color to sRGB color using a standard gamma correction.
- /// IEC 61966-2-1:1999 specification https://www.w3.org/Graphics/Color/srgb
- template <typename T, precision P, template <typename, precision> class vecType>
- GLM_FUNC_DECL vecType<T, P> convertLinearToSRGB(vecType<T, P> const & ColorLinear);
+ /// IEC 61966-2-1:1999 / Rec. 709 specification https://www.w3.org/Graphics/Color/srgb
+ template<length_t L, typename T, qualifier Q>
+ GLM_FUNC_DECL vec<L, T, Q> convertLinearToSRGB(vec<L, T, Q> const& ColorLinear);
/// Convert a linear color to sRGB color using a custom gamma correction.
- /// IEC 61966-2-1:1999 specification https://www.w3.org/Graphics/Color/srgb
- template <typename T, precision P, template <typename, precision> class vecType>
- GLM_FUNC_DECL vecType<T, P> convertLinearToSRGB(vecType<T, P> const & ColorLinear, T Gamma);
+ /// IEC 61966-2-1:1999 / Rec. 709 specification https://www.w3.org/Graphics/Color/srgb
+ template<length_t L, typename T, qualifier Q>
+ GLM_FUNC_DECL vec<L, T, Q> convertLinearToSRGB(vec<L, T, Q> const& ColorLinear, T Gamma);
/// Convert a sRGB color to linear color using a standard gamma correction.
- /// IEC 61966-2-1:1999 specification https://www.w3.org/Graphics/Color/srgb
- template <typename T, precision P, template <typename, precision> class vecType>
- GLM_FUNC_DECL vecType<T, P> convertSRGBToLinear(vecType<T, P> const & ColorSRGB);
+ /// IEC 61966-2-1:1999 / Rec. 709 specification https://www.w3.org/Graphics/Color/srgb
+ template<length_t L, typename T, qualifier Q>
+ GLM_FUNC_DECL vec<L, T, Q> convertSRGBToLinear(vec<L, T, Q> const& ColorSRGB);
/// Convert a sRGB color to linear color using a custom gamma correction.
- // IEC 61966-2-1:1999 specification https://www.w3.org/Graphics/Color/srgb
- template <typename T, precision P, template <typename, precision> class vecType>
- GLM_FUNC_DECL vecType<T, P> convertSRGBToLinear(vecType<T, P> const & ColorSRGB, T Gamma);
+ // IEC 61966-2-1:1999 / Rec. 709 specification https://www.w3.org/Graphics/Color/srgb
+ template<length_t L, typename T, qualifier Q>
+ GLM_FUNC_DECL vec<L, T, Q> convertSRGBToLinear(vec<L, T, Q> const& ColorSRGB, T Gamma);
/// @}
} //namespace glm