Merge branch '0.9.5' of https://github.com/g-truc/glm into 0.9.5
commit
dadab89566
70 changed files with 1271 additions and 1526 deletions
File diff suppressed because it is too large
Load Diff
@ -1,143 +0,0 @@ |
||||
///////////////////////////////////////////////////////////////////////////////////
|
||||
/// OpenGL Mathematics (glm.g-truc.net)
|
||||
///
|
||||
/// Copyright (c) 2005 - 2013 G-Truc Creation (www.g-truc.net)
|
||||
/// Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
/// of this software and associated documentation files (the "Software"), to deal
|
||||
/// in the Software without restriction, including without limitation the rights
|
||||
/// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
/// copies of the Software, and to permit persons to whom the Software is
|
||||
/// furnished to do so, subject to the following conditions:
|
||||
///
|
||||
/// The above copyright notice and this permission notice shall be included in
|
||||
/// all copies or substantial portions of the Software.
|
||||
///
|
||||
/// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
/// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
/// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
/// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
/// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
/// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
/// THE SOFTWARE.
|
||||
///
|
||||
/// @ref gtx_color_cast
|
||||
/// @file glm/gtx/color_cast.hpp
|
||||
/// @date 2007-06-21 / 2011-06-07
|
||||
/// @author Christophe Riccio
|
||||
///
|
||||
/// @see core (dependence)
|
||||
/// @see gtx_number_precision (dependence)
|
||||
///
|
||||
/// @defgroup gtx_color_cast GLM_GTX_color_cast
|
||||
/// @ingroup gtx
|
||||
///
|
||||
/// @brief Conversion between two color types.
|
||||
///
|
||||
/// <glm/gtx/color_cast.hpp> need to be included to use these functionalities.
|
||||
///////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#ifndef GLM_GTX_color_cast |
||||
#define GLM_GTX_color_cast GLM_VERSION |
||||
|
||||
// Dependency:
|
||||
#include "../glm.hpp" |
||||
#include "../gtx/number_precision.hpp" |
||||
|
||||
#if(defined(GLM_MESSAGES) && !defined(glm_ext)) |
||||
# pragma message("GLM: GLM_GTX_color_cast extension included") |
||||
#endif |
||||
|
||||
namespace glm |
||||
{ |
||||
/// @addtogroup gtx_color_cast
|
||||
/// @{
|
||||
|
||||
//! Conversion of a floating value into a 8bit unsigned int value.
|
||||
/// @see gtx_color_cast
|
||||
template <typename valType> |
||||
GLM_DEPRECATED uint8 u8channel_cast(valType a); |
||||
|
||||
template <typename T> |
||||
GLM_DEPRECATED uint32 u32_rgbx_cast(const detail::tvec3<T, P>& c); //!< \brief Conversion of a 3 components color into an 32bit unsigned int value. (From GLM_GTX_color_cast extension)
|
||||
template <typename T> |
||||
GLM_DEPRECATED uint32 u32_xrgb_cast(const detail::tvec3<T, P>& c); //!< \brief Conversion of a 3 components color into an 32bit unsigned int value. (From GLM_GTX_color_cast extension)
|
||||
template <typename T> |
||||
GLM_DEPRECATED uint32 u32_bgrx_cast(const detail::tvec3<T, P>& c); //!< \brief Conversion of a 3 components color into an 32bit unsigned int value. (From GLM_GTX_color_cast extension)
|
||||
template <typename T> |
||||
GLM_DEPRECATED uint32 u32_xbgr_cast(const detail::tvec3<T, P>& c); //!< \brief Conversion of a 3 components color into an 32bit unsigned int value. (From GLM_GTX_color_cast extension)
|
||||
|
||||
template <typename T> |
||||
GLM_DEPRECATED uint32 u32_rgba_cast(const detail::tvec4<T, P>& c); //!< \brief Conversion of a 4 components color into an 32bit unsigned int value. (From GLM_GTX_color_cast extension)
|
||||
template <typename T> |
||||
GLM_DEPRECATED uint32 u32_argb_cast(const detail::tvec4<T, P>& c); //!< \brief Conversion of a 4 components color into an 32bit unsigned int value. (From GLM_GTX_color_cast extension)
|
||||
template <typename T> |
||||
GLM_DEPRECATED uint32 u32_bgra_cast(const detail::tvec4<T, P>& c); //!< \brief Conversion of a 4 components color into an 32bit unsigned int value. (From GLM_GTX_color_cast extension)
|
||||
template <typename T> |
||||
GLM_DEPRECATED uint32 u32_abgr_cast(const detail::tvec4<T, P>& c); //!< \brief Conversion of a 4 components color into an 32bit unsigned int value. (From GLM_GTX_color_cast extension)
|
||||
|
||||
template <typename T> |
||||
GLM_DEPRECATED uint64 u64_rgbx_cast(const detail::tvec3<T, P>& c); //!< \brief Conversion of a 3 components color into an 64bit unsigned int value. (From GLM_GTX_color_cast extension)
|
||||
template <typename T> |
||||
GLM_DEPRECATED uint64 u64_xrgb_cast(const detail::tvec3<T, P>& c); //!< \brief Conversion of a 3 components color into an 64bit unsigned int value. (From GLM_GTX_color_cast extension)
|
||||
template <typename T> |
||||
GLM_DEPRECATED uint64 u64_bgrx_cast(const detail::tvec3<T, P>& c); //!< \brief Conversion of a 3 components color into an 64bit unsigned int value. (From GLM_GTX_color_cast extension)
|
||||
template <typename T> |
||||
GLM_DEPRECATED uint64 u64_xbgr_cast(const detail::tvec3<T, P>& c); //!< \brief Conversion of a 3 components color into an 64bit unsigned int value. (From GLM_GTX_color_cast extension)
|
||||
|
||||
template <typename T> |
||||
GLM_DEPRECATED uint64 u64_rgba_cast(const detail::tvec4<T, P>& c); //!< \brief Conversion of a 4 components color into an 64bit unsigned int value. (From GLM_GTX_color_cast extension)
|
||||
template <typename T> |
||||
GLM_DEPRECATED uint64 u64_argb_cast(const detail::tvec4<T, P>& c); //!< \brief Conversion of a 4 components color into an 64bit unsigned int value. (From GLM_GTX_color_cast extension)
|
||||
template <typename T> |
||||
GLM_DEPRECATED uint64 u64_bgra_cast(const detail::tvec4<T, P>& c); //!< \brief Conversion of a 4 components color into an 64bit unsigned int value. (From GLM_GTX_color_cast extension)
|
||||
template <typename T> |
||||
GLM_DEPRECATED uint64 u64_abgr_cast(const detail::tvec4<T, P>& c); //!< \brief Conversion of a 4 components color into an 64bit unsigned int value. (From GLM_GTX_color_cast extension)
|
||||
|
||||
template <typename T> |
||||
GLM_DEPRECATED f32 f32_channel_cast(T a); //!< \brief Conversion of a u8 or u16 value to a single channel floating value. (From GLM_GTX_color_cast extension)
|
||||
|
||||
template <typename T> |
||||
GLM_DEPRECATED f32vec3 f32_rgbx_cast(T c); //!< \brief Conversion of a u32 or u64 color into 3 components floating color. (From GLM_GTX_color_cast extension)
|
||||
template <typename T> |
||||
GLM_DEPRECATED f32vec3 f32_xrgb_cast(T c); //!< \brief Conversion of a u32 or u64 color into 3 components floating color. (From GLM_GTX_color_cast extension)
|
||||
template <typename T> |
||||
GLM_DEPRECATED f32vec3 f32_bgrx_cast(T c); //!< \brief Conversion of a u32 or u64 color into 3 components floating color. (From GLM_GTX_color_cast extension)
|
||||
template <typename T> |
||||
GLM_DEPRECATED f32vec3 f32_xbgr_cast(T c); //!< \brief Conversion of a u32 or u64 color into 3 components floating color. (From GLM_GTX_color_cast extension)
|
||||
|
||||
template <typename T> |
||||
GLM_DEPRECATED f32vec4 f32_rgba_cast(T c); //!< \brief Conversion of a u32 or u64 color into 4 components floating color. (From GLM_GTX_color_cast extension)
|
||||
template <typename T> |
||||
GLM_DEPRECATED f32vec4 f32_argb_cast(T c); //!< \brief Conversion of a u32 or u64 color into 4 components floating color. (From GLM_GTX_color_cast extension)
|
||||
template <typename T> |
||||
GLM_DEPRECATED f32vec4 f32_bgra_cast(T c); //!< \brief Conversion of a u32 or u64 color into 4 components floating color. (From GLM_GTX_color_cast extension)
|
||||
template <typename T> |
||||
GLM_DEPRECATED f32vec4 f32_abgr_cast(T c); //!< \brief Conversion of a u32 or u64 color into 4 components floating color. (From GLM_GTX_color_cast extension)
|
||||
|
||||
template <typename T> |
||||
GLM_DEPRECATED f64 f64_channel_cast(T a); //!< \brief Conversion of a u8 or u16 value to a single channel floating value. (From GLM_GTX_color_cast extension)
|
||||
|
||||
template <typename T> |
||||
GLM_DEPRECATED f64vec3 f64_rgbx_cast(T c); //!< \brief Conversion of a u32 or u64 color into 3 components floating color. (From GLM_GTX_color_cast extension)
|
||||
template <typename T> |
||||
GLM_DEPRECATED f64vec3 f64_xrgb_cast(T c); //!< \brief Conversion of a u32 or u64 color into 3 components floating color. (From GLM_GTX_color_cast extension)
|
||||
template <typename T> |
||||
GLM_DEPRECATED f64vec3 f64_bgrx_cast(T c); //!< \brief Conversion of a u32 or u64 color into 3 components floating color. (From GLM_GTX_color_cast extension)
|
||||
template <typename T> |
||||
GLM_DEPRECATED f64vec3 f64_xbgr_cast(T c); //!< \brief Conversion of a u32 or u64 color into 3 components floating color. (From GLM_GTX_color_cast extension)
|
||||
|
||||
template <typename T> |
||||
GLM_DEPRECATED f64vec4 f64_rgba_cast(T c); //!< \brief Conversion of a u32 or u64 color into 4 components floating color. (From GLM_GTX_color_cast extension)
|
||||
template <typename T> |
||||
GLM_DEPRECATED f64vec4 f64_argb_cast(T c); //!< \brief Conversion of a u32 or u64 color into 4 components floating color. (From GLM_GTX_color_cast extension)
|
||||
template <typename T> |
||||
GLM_DEPRECATED f64vec4 f64_bgra_cast(T c); //!< \brief Conversion of a u32 or u64 color into 4 components floating color. (From GLM_GTX_color_cast extension)
|
||||
template <typename T> |
||||
GLM_DEPRECATED f64vec4 f64_abgr_cast(T c); //!< \brief Conversion of a u32 or u64 color into 4 components floating color. (From GLM_GTX_color_cast extension)
|
||||
|
||||
/// @}
|
||||
}//namespace glm
|
||||
|
||||
#include "color_cast.inl" |
||||
|
||||
#endif//GLM_GTX_color_cast
|
@ -1,733 +0,0 @@ |
||||
/////////////////////////////////////////////////////////////////////////////////////////////////// |
||||
// OpenGL Mathematics Copyright (c) 2005 - 2013 G-Truc Creation (www.g-truc.net) |
||||
/////////////////////////////////////////////////////////////////////////////////////////////////// |
||||
// Created : 2007-06-21 |
||||
// Updated : 2007-08-03 |
||||
// Licence : This source is under MIT License |
||||
// File : glm/gtx/color_cast.inl |
||||
/////////////////////////////////////////////////////////////////////////////////////////////////// |
||||
|
||||
namespace glm |
||||
{ |
||||
template <typename T> |
||||
GLM_FUNC_QUALIFIER uint8 u8channel_cast(T a) |
||||
{ |
||||
return static_cast<uint8>(a * T(255)); |
||||
} |
||||
|
||||
template <typename T> |
||||
GLM_FUNC_QUALIFIER uint16 u16channel_cast(T a) |
||||
{ |
||||
return static_cast<uint16>(a * T(65535)); |
||||
} |
||||
|
||||
template <typename T> |
||||
GLM_FUNC_QUALIFIER uint32 u32_rgbx_cast(const detail::tvec3<T, P>& c) |
||||
{ |
||||
uint32 result = 0; |
||||
result += static_cast<uint32>(c.x * detail::tvec3<T, P>::value_type(255)) << 0; |
||||
result += static_cast<uint32>(c.y * detail::tvec3<T, P>::value_type(255)) << 8; |
||||
result += static_cast<uint32>(c.z * detail::tvec3<T, P>::value_type(255)) << 16; |
||||
return result; |
||||
} |
||||
|
||||
template <typename T> |
||||
GLM_FUNC_QUALIFIER uint32 u32_xrgb_cast(const detail::tvec3<T, P>& c) |
||||
{ |
||||
uint32 result = 0; |
||||
result += static_cast<uint32>(c.x * detail::tvec3<T, P>::value_type(255)) << 8; |
||||
result += static_cast<uint32>(c.y * detail::tvec3<T, P>::value_type(255)) << 16; |
||||
result += static_cast<uint32>(c.z * detail::tvec3<T, P>::value_type(255)) << 24; |
||||
return result; |
||||
} |
||||
|
||||
template <typename T> |
||||
GLM_FUNC_QUALIFIER uint32 u32_bgrx_cast(const detail::tvec3<T, P>& c) |
||||
{ |
||||
uint32 result = 0; |
||||
result += static_cast<uint32>(c.x * detail::tvec3<T, P>::value_type(255)) << 16; |
||||
result += static_cast<uint32>(c.y * detail::tvec3<T, P>::value_type(255)) << 8; |
||||
result += static_cast<uint32>(c.z * detail::tvec3<T, P>::value_type(255)) << 0; |
||||
return result; |
||||
} |
||||
|
||||
template <typename T> |
||||
GLM_FUNC_QUALIFIER uint32 u32_xbgr_cast(const detail::tvec3<T, P>& c) |
||||
{ |
||||
uint32 result = 0; |
||||
result += static_cast<uint32>(c.x * detail::tvec3<T, P>::value_type(255)) << 24; |
||||
result += static_cast<uint32>(c.y * detail::tvec3<T, P>::value_type(255)) << 16; |
||||
result += static_cast<uint32>(c.z * detail::tvec3<T, P>::value_type(255)) << 8; |
||||
result += static_cast<uint32>(c.w * detail::tvec3<T, P>::value_type(255)) << 0; |
||||
return result; |
||||
} |
||||
|
||||
template <typename T> |
||||
GLM_FUNC_QUALIFIER uint32 u32_rgba_cast(const detail::tvec4<T, P>& c) |
||||
{ |
||||
uint32 result = 0; |
||||
result += static_cast<uint32>(c.x * detail::tvec4<T, P>::value_type(255)) << 0; |
||||
result += static_cast<uint32>(c.y * detail::tvec4<T, P>::value_type(255)) << 8; |
||||
result += static_cast<uint32>(c.z * detail::tvec4<T, P>::value_type(255)) << 16; |
||||
result += static_cast<uint32>(c.w * detail::tvec4<T, P>::value_type(255)) << 24; |
||||
return result; |
||||
} |
||||
|
||||
template <typename T> |
||||
GLM_FUNC_QUALIFIER uint32 u32_argb_cast(const detail::tvec4<T, P>& c) |
||||
{ |
||||
uint32 result = 0; |
||||
result += static_cast<uint32>(c.x * detail::tvec4<T, P>::value_type(255)) << 8; |
||||
result += static_cast<uint32>(c.y * detail::tvec4<T, P>::value_type(255)) << 16; |
||||
result += static_cast<uint32>(c.z * detail::tvec4<T, P>::value_type(255)) << 24; |
||||
result += static_cast<uint32>(c.w * detail::tvec4<T, P>::value_type(255)) << 0; |
||||
return result; |
||||
} |
||||
|
||||
template <typename T> |
||||
GLM_FUNC_QUALIFIER uint32 u32_bgra_cast(const detail::tvec4<T, P>& c) |
||||
{ |
||||
uint32 result = 0; |
||||
result += static_cast<uint32>(c.x * detail::tvec4<T, P>::value_type(255)) << 16; |
||||
result += static_cast<uint32>(c.y * detail::tvec4<T, P>::value_type(255)) << 8; |
||||
result += static_cast<uint32>(c.z * detail::tvec4<T, P>::value_type(255)) << 0; |
||||
result += static_cast<uint32>(c.w * detail::tvec4<T, P>::value_type(255)) << 24; |
||||
return result; |
||||
} |
||||
|
||||
template <typename T> |
||||
GLM_FUNC_QUALIFIER uint32 u32_abgr_cast(const detail::tvec4<T, P>& c) |
||||
{ |
||||
uint32 result = 0; |
||||
result += static_cast<uint32>(c.x * detail::tvec4<T, P>::value_type(255)) << 24; |
||||
result += static_cast<uint32>(c.y * detail::tvec4<T, P>::value_type(255)) << 16; |
||||
result += static_cast<uint32>(c.z * detail::tvec4<T, P>::value_type(255)) << 8; |
||||
result += static_cast<uint32>(c.w * detail::tvec4<T, P>::value_type(255)) << 0; |
||||
return result; |
||||
} |
||||
|
||||
template <typename T> |
||||
GLM_FUNC_QUALIFIER uint64 u64_rgbx_cast(const detail::tvec3<T, P>& c) |
||||
{ |
||||
uint64 result = 0; |
||||
result += static_cast<uint64>(c.x * detail::tvec3<T, P>::value_type(65535)) << 0; |
||||
result += static_cast<uint64>(c.y * detail::tvec3<T, P>::value_type(65535)) << 16; |
||||
result += static_cast<uint64>(c.z * detail::tvec3<T, P>::value_type(65535)) << 32; |
||||
return result; |
||||
} |
||||
|
||||
template <typename T> |
||||
GLM_FUNC_QUALIFIER uint64 u32_xrgb_cast(const detail::tvec3<T, P>& c) |
||||
{ |
||||
uint64 result = 0; |
||||
result += static_cast<uint64>(c.x * detail::tvec3<T, P>::value_type(65535)) << 16; |
||||
result += static_cast<uint64>(c.y * detail::tvec3<T, P>::value_type(65535)) << 32; |
||||
result += static_cast<uint64>(c.z * detail::tvec3<T, P>::value_type(65535)) << 48; |
||||
return result; |
||||
} |
||||
|
||||
template <typename T> |
||||
GLM_FUNC_QUALIFIER uint64 u32_bgrx_cast(const detail::tvec3<T, P>& c) |
||||
{ |
||||
uint64 result = 0; |
||||
result += static_cast<uint64>(c.x * detail::tvec3<T, P>::value_type(65535)) << 32; |
||||
result += static_cast<uint64>(c.y * detail::tvec3<T, P>::value_type(65535)) << 16; |
||||
result += static_cast<uint64>(c.z * detail::tvec3<T, P>::value_type(65535)) << 0; |
||||
return result; |
||||
} |
||||
|
||||
template <typename T> |
||||
GLM_FUNC_QUALIFIER uint64 u32_xbgr_cast(const detail::tvec3<T, P>& c) |
||||
{ |
||||
uint64 result = 0; |
||||
result += static_cast<uint64>(c.x * detail::tvec3<T, P>::value_type(65535)) << 48; |
||||
result += static_cast<uint64>(c.y * detail::tvec3<T, P>::value_type(65535)) << 32; |
||||
result += static_cast<uint64>(c.z * detail::tvec3<T, P>::value_type(65535)) << 16; |
||||
result += static_cast<uint64>(c.w * detail::tvec3<T, P>::value_type(65535)) << 0; |
||||
return result; |
||||
} |
||||
|
||||
template <typename T> |
||||
GLM_FUNC_QUALIFIER uint64 u64_rgba_cast(const detail::tvec4<T, P>& c) |
||||
{ |
||||
uint64 result = 0; |
||||
result += static_cast<uint64>(c.x * detail::tvec4<T, P>::value_type(65535)) << 0; |
||||
result += static_cast<uint64>(c.y * detail::tvec4<T, P>::value_type(65535)) << 16; |
||||
result += static_cast<uint64>(c.z * detail::tvec4<T, P>::value_type(65535)) << 32; |
||||
result += static_cast<uint64>(c.w * detail::tvec4<T, P>::value_type(65535)) << 48; |
||||
return result; |
||||
} |
||||
|
||||
template <typename T> |
||||
GLM_FUNC_QUALIFIER uint64 u64_argb_cast(const detail::tvec4<T, P>& c) |
||||
{ |
||||
uint64 result = 0; |
||||
result += static_cast<uint64>(c.x * detail::tvec4<T, P>::value_type(65535)) << 16; |
||||
result += static_cast<uint64>(c.y * detail::tvec4<T, P>::value_type(65535)) << 32; |
||||
result += static_cast<uint64>(c.z * detail::tvec4<T, P>::value_type(65535)) << 48; |
||||
result += static_cast<uint64>(c.w * detail::tvec4<T, P>::value_type(65535)) << 0; |
||||
return result; |
||||
} |
||||
|
||||
template <typename T> |
||||
GLM_FUNC_QUALIFIER uint64 u64_bgra_cast(const detail::tvec4<T, P>& c) |
||||
{ |
||||
uint64 result = 0; |
||||
result += static_cast<uint64>(c.x * detail::tvec4<T, P>::value_type(65535)) << 32; |
||||
result += static_cast<uint64>(c.y * detail::tvec4<T, P>::value_type(65535)) << 16; |
||||
result += static_cast<uint64>(c.z * detail::tvec4<T, P>::value_type(65535)) << 0; |
||||
result += static_cast<uint64>(c.w * detail::tvec4<T, P>::value_type(65535)) << 48; |
||||
return result; |
||||
} |
||||
|
||||
template <typename T> |
||||
GLM_FUNC_QUALIFIER uint64 u64_abgr_cast(const detail::tvec4<T, P>& c) |
||||
{ |
||||
uint64 result = 0; |
||||
result += static_cast<uint64>(c.x * detail::tvec4<T, P>::value_type(65535)) << 48; |
||||
result += static_cast<uint64>(c.y * detail::tvec4<T, P>::value_type(65535)) << 32; |
||||
result += static_cast<uint64>(c.z * detail::tvec4<T, P>::value_type(65535)) << 16; |
||||
result += static_cast<uint64>(c.w * detail::tvec4<T, P>::value_type(65535)) << 0; |
||||
return result; |
||||
} |
||||
|
||||
template <> |
||||
GLM_FUNC_QUALIFIER f16 f16_channel_cast<uint32>(uint32 color) |
||||
{ |
||||
return f16(static_cast<float>(color >> 0) / static_cast<float>(255)); |
||||
} |
||||
|
||||
template <> |
||||
GLM_FUNC_QUALIFIER f16vec3 f16_rgbx_cast<uint32>(uint32 color) |
||||
{ |
||||
f16vec3 result; |
||||
result.x = f16(static_cast<float>((color >> 0) & 0xFF) / static_cast<float>(255)); |
||||
result.y = f16(static_cast<float>((color >> 8) & 0xFF) / static_cast<float>(255)); |
||||
result.z = f16(static_cast<float>((color >> 16) & 0xFF) / static_cast<float>(255)); |
||||
return result; |
||||
} |
||||
|
||||
template <> |
||||
GLM_FUNC_QUALIFIER f16vec3 f16_xrgb_cast<uint32>(uint32 color) |
||||
{ |
||||
f16vec3 result; |
||||
result.x = f16(static_cast<float>((color >> 8) & 0xFF) / static_cast<float>(255)); |
||||
result.y = f16(static_cast<float>((color >> 16) & 0xFF) / static_cast<float>(255)); |
||||
result.z = f16(static_cast<float>((color >> 24) & 0xFF) / static_cast<float>(255)); |
||||
return result; |
||||
} |
||||
|
||||
template <> |
||||
GLM_FUNC_QUALIFIER f16vec3 f16_bgrx_cast<uint32>(uint32 color) |
||||
{ |
||||
f16vec3 result; |
||||
result.x = f16(static_cast<float>((color >> 16) & 0xFF) / static_cast<float>(255)); |
||||
result.y = f16(static_cast<float>((color >> 8) & 0xFF) / static_cast<float>(255)); |
||||
result.z = f16(static_cast<float>((color >> 0) & 0xFF) / static_cast<float>(255)); |
||||
return result; |
||||
} |
||||
|
||||
template <> |
||||
GLM_FUNC_QUALIFIER f16vec3 f16_xbgr_cast<uint32>(uint32 color) |
||||
{ |
||||
f16vec3 result; |
||||
result.x = f16(static_cast<float>((color >> 24) & 0xFF) / static_cast<float>(255)); |
||||
result.y = f16(static_cast<float>((color >> 16) & 0xFF) / static_cast<float>(255)); |
||||
result.z = f16(static_cast<float>((color >> 8) & 0xFF) / static_cast<float>(255)); |
||||
return result; |
||||
} |
||||
|
||||
template <> |
||||
GLM_FUNC_QUALIFIER f16vec4 f16_rgba_cast<uint32>(uint32 color) |
||||
{ |
||||
f16vec4 result; |
||||
result.x = f16(static_cast<float>((color >> 0) & 0xFF) / static_cast<float>(255)); |
||||
result.y = f16(static_cast<float>((color >> 8) & 0xFF) / static_cast<float>(255)); |
||||
result.z = f16(static_cast<float>((color >> 16) & 0xFF) / static_cast<float>(255)); |
||||
result.w = f16(static_cast<float>((color >> 24) & 0xFF) / static_cast<float>(255)); |
||||
return result; |
||||
} |
||||
|
||||
template <> |
||||
GLM_FUNC_QUALIFIER f16vec4 f16_argb_cast<uint32>(uint32 color) |
||||
{ |
||||
f16vec4 result; |
||||
result.x = f16(static_cast<float>((color >> 8) & 0xFF) / static_cast<float>(255)); |
||||
result.y = f16(static_cast<float>((color >> 16) & 0xFF) / static_cast<float>(255)); |
||||
result.z = f16(static_cast<float>((color >> 24) & 0xFF) / static_cast<float>(255)); |
||||
result.w = f16(static_cast<float>((color >> 0) & 0xFF) / static_cast<float>(255)); |
||||
return result; |
||||
} |
||||
|
||||
template <> |
||||
GLM_FUNC_QUALIFIER f16vec4 f16_bgra_cast<uint32>(uint32 color) |
||||
{ |
||||
f16vec4 result; |
||||
result.x = f16(static_cast<float>((color >> 16) & 0xFF) / static_cast<float>(255)); |
||||
result.y = f16(static_cast<float>((color >> 8) & 0xFF) / static_cast<float>(255)); |
||||
result.z = f16(static_cast<float>((color >> 0) & 0xFF) / static_cast<float>(255)); |
||||
result.w = f16(static_cast<float>((color >> 24) & 0xFF) / static_cast<float>(255)); |
||||
return result; |
||||
} |
||||
|
||||
template <> |
||||
GLM_FUNC_QUALIFIER f16vec4 f16_abgr_cast<uint32>(uint32 color) |
||||
{ |
||||
f16vec4 result; |
||||
result.x = f16(static_cast<float>((color >> 24) & 0xFF) / static_cast<float>(255)); |
||||
result.y = f16(static_cast<float>((color >> 16) & 0xFF) / static_cast<float>(255)); |
||||
result.z = f16(static_cast<float>((color >> 8) & 0xFF) / static_cast<float>(255)); |
||||
result.w = f16(static_cast<float>((color >> 0) & 0xFF) / static_cast<float>(255)); |
||||
return result; |
||||
} |
||||
|
||||
template <> |
||||
GLM_FUNC_QUALIFIER float f32_channel_cast<uint8>(uint8 color) |
||||
{ |
||||
return static_cast<float>(color >> 0) / static_cast<float>(255); |
||||
} |
||||
|
||||
template <> |
||||
GLM_FUNC_QUALIFIER detail::tvec3<float> f32_rgbx_cast<uint32>(uint32 color) |
||||
{ |
||||
detail::tvec3<float> result; |
||||
result.x = static_cast<float>((color >> 0) & 0xFF) / static_cast<float>(255); |
||||
result.y = static_cast<float>((color >> 8) & 0xFF) / static_cast<float>(255); |
||||
result.z = static_cast<float>((color >> 16) & 0xFF) / static_cast<float>(255); |
||||
return result; |
||||
} |
||||
|
||||
template <> |
||||
GLM_FUNC_QUALIFIER detail::tvec3<float> f32_xrgb_cast<uint32>(uint32 color) |
||||
{ |
||||
detail::tvec3<float> result; |
||||
result.x = static_cast<float>((color >> 8) & 0xFF) / static_cast<float>(255); |
||||
result.y = static_cast<float>((color >> 16) & 0xFF) / static_cast<float>(255); |
||||
result.z = static_cast<float>((color >> 24) & 0xFF) / static_cast<float>(255); |
||||
return result; |
||||
} |
||||
|
||||
template <> |
||||
GLM_FUNC_QUALIFIER detail::tvec3<float> f32_bgrx_cast<uint32>(uint32 color) |
||||
{ |
||||
detail::tvec3<float> result; |
||||
result.x = static_cast<float>((color >> 16) & 0xFF) / static_cast<float>(255); |
||||
result.y = static_cast<float>((color >> 8) & 0xFF) / static_cast<float>(255); |
||||
result.z = static_cast<float>((color >> 0) & 0xFF) / static_cast<float>(255); |
||||
return result; |
||||
} |
||||
|
||||
template <> |
||||
GLM_FUNC_QUALIFIER detail::tvec3<float> f32_xbgr_cast<uint32>(uint32 color) |
||||
{ |
||||
detail::tvec3<float> result; |
||||
result.x = static_cast<float>((color >> 24) & 0xFF) / static_cast<float>(255); |
||||
result.y = static_cast<float>((color >> 16) & 0xFF) / static_cast<float>(255); |
||||
result.z = static_cast<float>((color >> 8) & 0xFF) / static_cast<float>(255); |
||||
return result; |
||||
} |
||||
|
||||
template <> |
||||
GLM_FUNC_QUALIFIER detail::tvec4<float> f32_rgba_cast<uint32>(uint32 color) |
||||
{ |
||||
detail::tvec4<float> result; |
||||
result.x = static_cast<float>((color >> 0) & 0xFF) / static_cast<float>(255); |
||||
result.y = static_cast<float>((color >> 8) & 0xFF) / static_cast<float>(255); |
||||
result.z = static_cast<float>((color >> 16) & 0xFF) / static_cast<float>(255); |
||||
result.w = static_cast<float>((color >> 24) & 0xFF) / static_cast<float>(255); |
||||
return result; |
||||
} |
||||
|
||||
template <> |
||||
GLM_FUNC_QUALIFIER detail::tvec4<float> f32_argb_cast<uint32>(uint32 color) |
||||
{ |
||||
detail::tvec4<float> result; |
||||
result.x = static_cast<float>((color >> 8) & 0xFF) / static_cast<float>(255); |
||||
result.y = static_cast<float>((color >> 16) & 0xFF) / static_cast<float>(255); |
||||
result.z = static_cast<float>((color >> 24) & 0xFF) / static_cast<float>(255); |
||||
result.w = static_cast<float>((color >> 0) & 0xFF) / static_cast<float>(255); |
||||
return result; |
||||
} |
||||
|
||||
template <> |
||||
GLM_FUNC_QUALIFIER detail::tvec4<float> f32_bgra_cast<uint32>(uint32 color) |
||||
{ |
||||
detail::tvec4<float> result; |
||||
result.x = static_cast<float>((color >> 16) & 0xFF) / static_cast<float>(255); |
||||
result.y = static_cast<float>((color >> 8) & 0xFF) / static_cast<float>(255); |
||||
result.z = static_cast<float>((color >> 0) & 0xFF) / static_cast<float>(255); |
||||
result.w = static_cast<float>((color >> 24) & 0xFF) / static_cast<float>(255); |
||||
return result; |
||||
} |
||||
|
||||
template <> |
||||
GLM_FUNC_QUALIFIER detail::tvec4<float> f32_abgr_cast<uint32>(uint32 color) |
||||
{ |
||||
detail::tvec4<float> result; |
||||
result.x = static_cast<float>((color >> 24) & 0xFF) / static_cast<float>(255); |
||||
result.y = static_cast<float>((color >> 16) & 0xFF) / static_cast<float>(255); |
||||
result.z = static_cast<float>((color >> 8) & 0xFF) / static_cast<float>(255); |
||||
result.w = static_cast<float>((color >> 0) & 0xFF) / static_cast<float>(255); |
||||
return result; |
||||
} |
||||
|
||||
template <> |
||||
GLM_FUNC_QUALIFIER double f64_channel_cast<uint8>(uint8 color) |
||||
{ |
||||
return static_cast<double>(color >> 0) / static_cast<double>(255); |
||||
} |
||||
|
||||
template <> |
||||
GLM_FUNC_QUALIFIER detail::tvec3<double> f64_rgbx_cast<uint32>(uint32 color) |
||||
{ |
||||
detail::tvec3<double> result; |
||||
result.x = static_cast<double>((color >> 0) & 0xFF) / static_cast<double>(255); |
||||
result.y = static_cast<double>((color >> 8) & 0xFF) / static_cast<double>(255); |
||||
result.z = static_cast<double>((color >> 16) & 0xFF) / static_cast<double>(255); |
||||
return result; |
||||
} |
||||
|
||||
template <> |
||||
GLM_FUNC_QUALIFIER detail::tvec3<double> f64_xrgb_cast<uint32>(uint32 color) |
||||
{ |
||||
detail::tvec3<double> result; |
||||
result.x = static_cast<double>((color >> 8) & 0xFF) / static_cast<double>(255); |
||||
result.y = static_cast<double>((color >> 16) & 0xFF) / static_cast<double>(255); |
||||
result.z = static_cast<double>((color >> 24) & 0xFF) / static_cast<double>(255); |
||||
return result; |
||||
} |
||||
|
||||
template <> |
||||
GLM_FUNC_QUALIFIER detail::tvec3<double> f64_bgrx_cast<uint32>(uint32 color) |
||||
{ |
||||
detail::tvec3<double> result; |
||||
result.x = static_cast<double>((color >> 16) & 0xFF) / static_cast<double>(255); |
||||
result.y = static_cast<double>((color >> 8) & 0xFF) / static_cast<double>(255); |
||||
result.z = static_cast<double>((color >> 0) & 0xFF) / static_cast<double>(255); |
||||
return result; |
||||
} |
||||
|
||||
template <> |
||||
GLM_FUNC_QUALIFIER detail::tvec3<double> f64_xbgr_cast<uint32>(uint32 color) |
||||
{ |
||||
detail::tvec3<double> result; |
||||
result.x = static_cast<double>((color >> 24) & 0xFF) / static_cast<double>(255); |
||||
result.y = static_cast<double>((color >> 16) & 0xFF) / static_cast<double>(255); |
||||
result.z = static_cast<double>((color >> 8) & 0xFF) / static_cast<double>(255); |
||||
return result; |
||||
} |
||||
|
||||
template <> |
||||
GLM_FUNC_QUALIFIER detail::tvec4<double> f64_rgba_cast<uint32>(uint32 color) |
||||
{ |
||||
detail::tvec4<double> result; |
||||
result.x = static_cast<double>((color >> 0) & 0xFF) / static_cast<double>(255); |
||||
result.y = static_cast<double>((color >> 8) & 0xFF) / static_cast<double>(255); |
||||
result.z = static_cast<double>((color >> 16) & 0xFF) / static_cast<double>(255); |
||||
result.w = static_cast<double>((color >> 24) & 0xFF) / static_cast<double>(255); |
||||
return result; |
||||
} |
||||
|
||||
template <> |
||||
GLM_FUNC_QUALIFIER detail::tvec4<double> f64_argb_cast<uint32>(uint32 color) |
||||
{ |
||||
detail::tvec4<double> result; |
||||
result.x = static_cast<double>((color >> 8) & 0xFF) / static_cast<double>(255); |
||||
result.y = static_cast<double>((color >> 16) & 0xFF) / static_cast<double>(255); |
||||
result.z = static_cast<double>((color >> 24) & 0xFF) / static_cast<double>(255); |
||||
result.w = static_cast<double>((color >> 0) & 0xFF) / static_cast<double>(255); |
||||
return result; |
||||
} |
||||
|
||||
template <> |
||||
GLM_FUNC_QUALIFIER detail::tvec4<double> f64_bgra_cast<uint32>(uint32 color) |
||||
{ |
||||
detail::tvec4<double> result; |
||||
result.x = static_cast<double>((color >> 16) & 0xFF) / static_cast<double>(255); |
||||
result.y = static_cast<double>((color >> 8) & 0xFF) / static_cast<double>(255); |
||||
result.z = static_cast<double>((color >> 0) & 0xFF) / static_cast<double>(255); |
||||
result.w = static_cast<double>((color >> 24) & 0xFF) / static_cast<double>(255); |
||||
return result; |
||||
} |
||||
|
||||
template <> |
||||
GLM_FUNC_QUALIFIER detail::tvec4<double> f64_abgr_cast<uint32>(uint32 color) |
||||
{ |
||||
detail::tvec4<double> result; |
||||
result.x = static_cast<double>((color >> 24) & 0xFF) / static_cast<double>(255); |
||||
result.y = static_cast<double>((color >> 16) & 0xFF) / static_cast<double>(255); |
||||
result.z = static_cast<double>((color >> 8) & 0xFF) / static_cast<double>(255); |
||||
result.w = static_cast<double>((color >> 0) & 0xFF) / static_cast<double>(255); |
||||
return result; |
||||
} |
||||
|
||||
template <> |
||||
GLM_FUNC_QUALIFIER detail::half f16_channel_cast<uint16>(uint16 color) |
||||
{ |
||||
return detail::half(static_cast<float>(color >> 0) / static_cast<float>(65535)); |
||||
} |
||||
|
||||
template <> |
||||
GLM_FUNC_QUALIFIER detail::tvec3<detail::half> f16_rgbx_cast<uint64>(uint64 color) |
||||
{ |
||||
detail::tvec3<detail::half> result; |
||||
result.x = detail::half(static_cast<float>((color >> 0) & 0xFFFF) / static_cast<float>(65535)); |
||||
result.y = detail::half(static_cast<float>((color >> 16) & 0xFFFF) / static_cast<float>(65535)); |
||||
result.z = detail::half(static_cast<float>((color >> 32) & 0xFFFF) / static_cast<float>(65535)); |
||||
return result; |
||||
} |
||||
|
||||
template <> |
||||
GLM_FUNC_QUALIFIER detail::tvec3<detail::half> f16_xrgb_cast<uint64>(uint64 color) |
||||
{ |
||||
detail::tvec3<detail::half> result; |
||||
result.x = detail::half(static_cast<float>((color >> 16) & 0xFFFF) / static_cast<float>(65535)); |
||||
result.y = detail::half(static_cast<float>((color >> 32) & 0xFFFF) / static_cast<float>(65535)); |
||||
result.z = detail::half(static_cast<float>((color >> 48) & 0xFFFF) / static_cast<float>(65535)); |
||||
return result; |
||||
} |
||||
|
||||
template <> |
||||
GLM_FUNC_QUALIFIER detail::tvec3<detail::half> f16_bgrx_cast<uint64>(uint64 color) |
||||
{ |
||||
detail::tvec3<detail::half> result; |
||||
result.x = detail::half(static_cast<float>((color >> 32) & 0xFFFF) / static_cast<float>(65535)); |
||||
result.y = detail::half(static_cast<float>((color >> 16) & 0xFFFF) / static_cast<float>(65535)); |
||||
result.z = detail::half(static_cast<float>((color >> 0) & 0xFFFF) / static_cast<float>(65535)); |
||||
return result; |
||||
} |
||||
|
||||
template <> |
||||
GLM_FUNC_QUALIFIER detail::tvec3<detail::half> f16_xbgr_cast<uint64>(uint64 color) |
||||
{ |
||||
detail::tvec3<detail::half> result; |
||||
result.x = detail::half(static_cast<float>((color >> 48) & 0xFFFF) / static_cast<float>(65535)); |
||||
result.y = detail::half(static_cast<float>((color >> 32) & 0xFFFF) / static_cast<float>(65535)); |
||||
result.z = detail::half(static_cast<float>((color >> 16) & 0xFFFF) / static_cast<float>(65535)); |
||||
return result; |
||||
} |
||||
|
||||
template <> |
||||
GLM_FUNC_QUALIFIER detail::tvec4<detail::half> f16_rgba_cast<uint64>(uint64 color) |
||||
{ |
||||
detail::tvec4<detail::half> result; |
||||
result.x = detail::half(static_cast<float>((color >> 0) & 0xFFFF) / static_cast<float>(65535)); |
||||
result.y = detail::half(static_cast<float>((color >> 16) & 0xFFFF) / static_cast<float>(65535)); |
||||
result.z = detail::half(static_cast<float>((color >> 32) & 0xFFFF) / static_cast<float>(65535)); |
||||
result.w = detail::half(static_cast<float>((color >> 48) & 0xFFFF) / static_cast<float>(65535)); |
||||
return result; |
||||
} |
||||
|
||||
template <> |
||||
GLM_FUNC_QUALIFIER detail::tvec4<detail::half> f16_argb_cast<uint64>(uint64 color) |
||||
{ |
||||
detail::tvec4<detail::half> result; |
||||
result.x = detail::half(static_cast<float>((color >> 16) & 0xFFFF) / static_cast<float>(65535)); |
||||
result.y = detail::half(static_cast<float>((color >> 32) & 0xFFFF) / static_cast<float>(65535)); |
||||
result.z = detail::half(static_cast<float>((color >> 48) & 0xFFFF) / static_cast<float>(65535)); |
||||
result.w = detail::half(static_cast<float>((color >> 0) & 0xFFFF) / static_cast<float>(65535)); |
||||
return result; |
||||
} |
||||
|
||||
template <> |
||||
GLM_FUNC_QUALIFIER detail::tvec4<detail::half> f16_bgra_cast<uint64>(uint64 color) |
||||
{ |
||||
detail::tvec4<detail::half> result; |
||||
result.x = detail::half(static_cast<float>((color >> 32) & 0xFFFF) / static_cast<float>(65535)); |
||||
result.y = detail::half(static_cast<float>((color >> 16) & 0xFFFF) / static_cast<float>(65535)); |
||||
result.z = detail::half(static_cast<float>((color >> 0) & 0xFFFF) / static_cast<float>(65535)); |
||||
result.w = detail::half(static_cast<float>((color >> 48) & 0xFFFF) / static_cast<float>(65535)); |
||||
return result; |
||||
} |
||||
|
||||
template <> |
||||
GLM_FUNC_QUALIFIER detail::tvec4<detail::half> f16_abgr_cast<uint64>(uint64 color) |
||||
{ |
||||
detail::tvec4<detail::half> result; |
||||
result.x = detail::half(static_cast<float>((color >> 48) & 0xFFFF) / static_cast<float>(65535)); |
||||
result.y = detail::half(static_cast<float>((color >> 32) & 0xFFFF) / static_cast<float>(65535)); |
||||
result.z = detail::half(static_cast<float>((color >> 16) & 0xFFFF) / static_cast<float>(65535)); |
||||
result.w = detail::half(static_cast<float>((color >> 0) & 0xFFFF) / static_cast<float>(65535)); |
||||
return result; |
||||
} |
||||
|
||||
template <> |
||||
GLM_FUNC_QUALIFIER float f32_channel_cast<uint16>(uint16 color) |
||||
{ |
||||
return static_cast<float>(color >> 0) / static_cast<float>(65535); |
||||
} |
||||
|
||||
template <> |
||||
GLM_FUNC_QUALIFIER detail::tvec3<float> f32_rgbx_cast<uint64>(uint64 color) |
||||
{ |
||||
detail::tvec3<float> result; |
||||
result.x = static_cast<float>((color >> 0) & 0xFFFF) / static_cast<float>(65535); |
||||
result.y = static_cast<float>((color >> 16) & 0xFFFF) / static_cast<float>(65535); |
||||
result.z = static_cast<float>((color >> 32) & 0xFFFF) / static_cast<float>(65535); |
||||
return result; |
||||
} |
||||
|
||||
template <> |
||||
GLM_FUNC_QUALIFIER detail::tvec3<float> f32_xrgb_cast<uint64>(uint64 color) |
||||
{ |
||||
detail::tvec3<float> result; |
||||
result.x = static_cast<float>((color >> 16) & 0xFFFF) / static_cast<float>(65535); |
||||
result.y = static_cast<float>((color >> 32) & 0xFFFF) / static_cast<float>(65535); |
||||
result.z = static_cast<float>((color >> 48) & 0xFFFF) / static_cast<float>(65535); |
||||
return result; |
||||
} |
||||
|
||||
template <> |
||||
GLM_FUNC_QUALIFIER detail::tvec3<float> f32_bgrx_cast<uint64>(uint64 color) |
||||
{ |
||||
detail::tvec3<float> result; |
||||
result.x = static_cast<float>((color >> 32) & 0xFFFF) / static_cast<float>(65535); |
||||
result.y = static_cast<float>((color >> 16) & 0xFFFF) / static_cast<float>(65535); |
||||
result.z = static_cast<float>((color >> 0) & 0xFFFF) / static_cast<float>(65535); |
||||
return result; |
||||
} |
||||
|
||||
template <> |
||||
GLM_FUNC_QUALIFIER detail::tvec3<float> f32_xbgr_cast<uint64>(uint64 color) |
||||
{ |
||||
detail::tvec3<float> result; |
||||
result.x = static_cast<float>((color >> 48) & 0xFFFF) / static_cast<float>(65535); |
||||
result.y = static_cast<float>((color >> 32) & 0xFFFF) / static_cast<float>(65535); |
||||
result.z = static_cast<float>((color >> 16) & 0xFFFF) / static_cast<float>(65535); |
||||
return result; |
||||
} |
||||
|
||||
template <> |
||||
GLM_FUNC_QUALIFIER detail::tvec4<float> f32_rgba_cast<uint64>(uint64 color) |
||||
{ |
||||
detail::tvec4<float> result; |
||||
result.x = static_cast<float>((color >> 0) & 0xFFFF) / static_cast<float>(65535); |
||||
result.y = static_cast<float>((color >> 16) & 0xFFFF) / static_cast<float>(65535); |
||||
result.z = static_cast<float>((color >> 32) & 0xFFFF) / static_cast<float>(65535); |
||||
result.w = static_cast<float>((color >> 48) & 0xFFFF) / static_cast<float>(65535); |
||||
return result; |
||||
} |
||||
|
||||
template <> |
||||
GLM_FUNC_QUALIFIER detail::tvec4<float> f32_argb_cast<uint64>(uint64 color) |
||||
{ |
||||
detail::tvec4<float> result; |
||||
result.x = static_cast<float>((color >> 16) & 0xFFFF) / static_cast<float>(65535); |
||||
result.y = static_cast<float>((color >> 32) & 0xFFFF) / static_cast<float>(65535); |
||||
result.z = static_cast<float>((color >> 48) & 0xFFFF) / static_cast<float>(65535); |
||||
result.w = static_cast<float>((color >> 0) & 0xFFFF) / static_cast<float>(65535); |
||||
return result; |
||||
} |
||||
|
||||
template <> |
||||
GLM_FUNC_QUALIFIER detail::tvec4<float> f32_bgra_cast<uint64>(uint64 color) |
||||
{ |
||||
detail::tvec4<float> result; |
||||
result.x = static_cast<float>((color >> 32) & 0xFFFF) / static_cast<float>(65535); |
||||
result.y = static_cast<float>((color >> 16) & 0xFFFF) / static_cast<float>(65535); |
||||
result.z = static_cast<float>((color >> 0) & 0xFFFF) / static_cast<float>(65535); |
||||
result.w = static_cast<float>((color >> 48) & 0xFFFF) / static_cast<float>(65535); |
||||
return result; |
||||
} |
||||
|
||||
template <> |
||||
GLM_FUNC_QUALIFIER detail::tvec4<float> f32_abgr_cast<uint64>(uint64 color) |
||||
{ |
||||
detail::tvec4<float> result; |
||||
result.x = static_cast<float>((color >> 48) & 0xFFFF) / static_cast<float>(65535); |
||||
result.y = static_cast<float>((color >> 32) & 0xFFFF) / static_cast<float>(65535); |
||||
result.z = static_cast<float>((color >> 16) & 0xFFFF) / static_cast<float>(65535); |
||||
result.w = static_cast<float>((color >> 0) & 0xFFFF) / static_cast<float>(65535); |
||||
return result; |
||||
} |
||||
|
||||
template <> |
||||
GLM_FUNC_QUALIFIER double f64_channel_cast<uint16>(uint16 color) |
||||
{ |
||||
return static_cast<double>(color >> 0) / static_cast<double>(65535); |
||||
} |
||||
|
||||
template <> |
||||
GLM_FUNC_QUALIFIER detail::tvec3<double> f64_rgbx_cast<uint64>(uint64 color) |
||||
{ |
||||
detail::tvec3<double> result; |
||||
result.x = static_cast<double>((color >> 0) & 0xFFFF) / static_cast<double>(65535); |
||||
result.y = static_cast<double>((color >> 16) & 0xFFFF) / static_cast<double>(65535); |
||||
result.z = static_cast<double>((color >> 32) & 0xFFFF) / static_cast<double>(65535); |
||||
return result; |
||||
} |
||||
|
||||
template <> |
||||
GLM_FUNC_QUALIFIER detail::tvec3<double> f64_xrgb_cast<uint64>(uint64 color) |
||||
{ |
||||
detail::tvec3<double> result; |
||||
result.x = static_cast<double>((color >> 16) & 0xFFFF) / static_cast<double>(65535); |
||||
result.y = static_cast<double>((color >> 32) & 0xFFFF) / static_cast<double>(65535); |
||||
result.z = static_cast<double>((color >> 48) & 0xFFFF) / static_cast<double>(65535); |
||||
return result; |
||||
} |
||||
|
||||
template <> |
||||
GLM_FUNC_QUALIFIER detail::tvec3<double> f64_bgrx_cast<uint64>(uint64 color) |
||||
{ |
||||
detail::tvec3<double> result; |
||||
result.x = static_cast<double>((color >> 32) & 0xFFFF) / static_cast<double>(65535); |
||||
result.y = static_cast<double>((color >> 16) & 0xFFFF) / static_cast<double>(65535); |
||||
result.z = static_cast<double>((color >> 0) & 0xFFFF) / static_cast<double>(65535); |
||||
return result; |
||||
} |
||||
|
||||
template <> |
||||
GLM_FUNC_QUALIFIER detail::tvec3<double> f64_xbgr_cast<uint64>(uint64 color) |
||||
{ |
||||
detail::tvec3<double> result; |
||||
result.x = static_cast<double>((color >> 48) & 0xFFFF) / static_cast<double>(65535); |
||||
result.y = static_cast<double>((color >> 32) & 0xFFFF) / static_cast<double>(65535); |
||||
result.z = static_cast<double>((color >> 16) & 0xFFFF) / static_cast<double>(65535); |
||||
return result; |
||||
} |
||||
|
||||
template <> |
||||
GLM_FUNC_QUALIFIER detail::tvec4<double> f64_rgba_cast<uint64>(uint64 color) |
||||
{ |
||||
detail::tvec4<double> result; |
||||
result.x = static_cast<double>((color >> 0) & 0xFFFF) / static_cast<double>(65535); |
||||
result.y = static_cast<double>((color >> 16) & 0xFFFF) / static_cast<double>(65535); |
||||
result.z = static_cast<double>((color >> 32) & 0xFFFF) / static_cast<double>(65535); |
||||
result.w = static_cast<double>((color >> 48) & 0xFFFF) / static_cast<double>(65535); |
||||
return result; |
||||
} |
||||
|
||||
template <> |
||||
GLM_FUNC_QUALIFIER detail::tvec4<double> f64_argb_cast<uint64>(uint64 color) |
||||
{ |
||||
detail::tvec4<double> result; |
||||
result.x = static_cast<double>((color >> 16) & 0xFFFF) / static_cast<double>(65535); |
||||
result.y = static_cast<double>((color >> 32) & 0xFFFF) / static_cast<double>(65535); |
||||
result.z = static_cast<double>((color >> 48) & 0xFFFF) / static_cast<double>(65535); |
||||
result.w = static_cast<double>((color >> 0) & 0xFFFF) / static_cast<double>(65535); |
||||
return result; |
||||
} |
||||
|
||||
template <> |
||||
GLM_FUNC_QUALIFIER detail::tvec4<double> f64_bgra_cast<uint64>(uint64 color) |
||||
{ |
||||
detail::tvec4<double> result; |
||||
result.x = static_cast<double>((color >> 32) & 0xFFFF) / static_cast<double>(65535); |
||||
result.y = static_cast<double>((color >> 16) & 0xFFFF) / static_cast<double>(65535); |
||||
result.z = static_cast<double>((color >> 0) & 0xFFFF) / static_cast<double>(65535); |
||||
result.w = static_cast<double>((color >> 48) & 0xFFFF) / static_cast<double>(65535); |
||||
return result; |
||||
} |
||||
|
||||
template <> |
||||
GLM_FUNC_QUALIFIER detail::tvec4<double> f64_abgr_cast<uint64>(uint64 color) |
||||
{ |
||||
detail::tvec4<double> result; |
||||
result.x = static_cast<double>((color >> 48) & 0xFFFF) / static_cast<double>(65535); |
||||
result.y = static_cast<double>((color >> 32) & 0xFFFF) / static_cast<double>(65535); |
||||
result.z = static_cast<double>((color >> 16) & 0xFFFF) / static_cast<double>(65535); |
||||
result.w = static_cast<double>((color >> 0) & 0xFFFF) / static_cast<double>(65535); |
||||
return result; |
||||
} |
||||
}//namespace glm |
@ -0,0 +1,21 @@ |
||||
///////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
// OpenGL Mathematics Copyright (c) 2005 - 2013 G-Truc Creation (www.g-truc.net)
|
||||
///////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
// Created : 2013-10-25
|
||||
// Updated : 2013-10-25
|
||||
// Licence : This source is under MIT licence
|
||||
// File : test/gtx/associated_min_max.cpp
|
||||
///////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#include <emmintrin.h> |
||||
|
||||
#include <glm/glm.hpp> |
||||
#include <glm/gtc/type_precision.hpp> |
||||
#include <glm/gtx/associated_min_max.hpp> |
||||
|
||||
int main() |
||||
{ |
||||
int Error(0); |
||||
|
||||
return Error; |
||||
} |
@ -0,0 +1,21 @@ |
||||
///////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
// OpenGL Mathematics Copyright (c) 2005 - 2013 G-Truc Creation (www.g-truc.net)
|
||||
///////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
// Created : 2013-10-25
|
||||
// Updated : 2013-10-25
|
||||
// Licence : This source is under MIT licence
|
||||
// File : test/gtx/associated_min_max.cpp
|
||||
///////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#include <emmintrin.h> |
||||
|
||||
#include <glm/glm.hpp> |
||||
#include <glm/gtc/type_precision.hpp> |
||||
#include <glm/gtx/associated_min_max.hpp> |
||||
|
||||
int main() |
||||
{ |
||||
int Error(0); |
||||
|
||||
return Error; |
||||
} |
@ -0,0 +1,21 @@ |
||||
///////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
// OpenGL Mathematics Copyright (c) 2005 - 2013 G-Truc Creation (www.g-truc.net)
|
||||
///////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
// Created : 2013-10-25
|
||||
// Updated : 2013-10-25
|
||||
// Licence : This source is under MIT licence
|
||||
// File : test/gtx/color_space.cpp
|
||||
///////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#include <emmintrin.h> |
||||
|
||||
#include <glm/glm.hpp> |
||||
#include <glm/gtc/type_precision.hpp> |
||||
#include <glm/gtx/color_space.hpp> |
||||
|
||||
int main() |
||||
{ |
||||
int Error(0); |
||||
|
||||
return Error; |
||||
} |
@ -0,0 +1,21 @@ |
||||
///////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
// OpenGL Mathematics Copyright (c) 2005 - 2013 G-Truc Creation (www.g-truc.net)
|
||||
///////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
// Created : 2013-10-25
|
||||
// Updated : 2013-10-25
|
||||
// Licence : This source is under MIT licence
|
||||
// File : test/gtx/color_space_YCoCg.cpp
|
||||
///////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#include <emmintrin.h> |
||||
|
||||
#include <glm/glm.hpp> |
||||
#include <glm/gtc/type_precision.hpp> |
||||
#include <glm/gtx/color_space_YCoCg.hpp> |
||||
|
||||
int main() |
||||
{ |
||||
int Error(0); |
||||
|
||||
return Error; |
||||
} |
@ -0,0 +1,19 @@ |
||||
///////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
// OpenGL Mathematics Copyright (c) 2005 - 2013 G-Truc Creation (www.g-truc.net)
|
||||
///////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
// Created : 2013-10-25
|
||||
// Updated : 2013-10-25
|
||||
// Licence : This source is under MIT licence
|
||||
// File : test/gtx/compatibility.cpp
|
||||
///////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#include <glm/glm.hpp> |
||||
#include <glm/gtc/type_precision.hpp> |
||||
#include <glm/gtx/compatibility.hpp> |
||||
|
||||
int main() |
||||
{ |
||||
int Error(0); |
||||
|
||||
return Error; |
||||
} |
@ -0,0 +1,21 @@ |
||||
///////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
// OpenGL Mathematics Copyright (c) 2005 - 2013 G-Truc Creation (www.g-truc.net)
|
||||
///////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
// Created : 2013-10-25
|
||||
// Updated : 2013-10-25
|
||||
// Licence : This source is under MIT licence
|
||||
// File : test/gtx/component_wise.cpp
|
||||
///////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#include <emmintrin.h> |
||||
|
||||
#include <glm/glm.hpp> |
||||
#include <glm/gtc/type_precision.hpp> |
||||
#include <glm/gtx/component_wise.hpp> |
||||
|
||||
int main() |
||||
{ |
||||
int Error(0); |
||||
|
||||
return Error; |
||||
} |
@ -0,0 +1,19 @@ |
||||
///////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
// OpenGL Mathematics Copyright (c) 2005 - 2013 G-Truc Creation (www.g-truc.net)
|
||||
///////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
// Created : 2013-10-25
|
||||
// Updated : 2013-10-25
|
||||
// Licence : This source is under MIT licence
|
||||
// File : test/gtx/extend.cpp
|
||||
///////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#include <glm/glm.hpp> |
||||
#include <glm/gtc/type_precision.hpp> |
||||
#include <glm/gtx/extend.hpp> |
||||
|
||||
int main() |
||||
{ |
||||
int Error(0); |
||||
|
||||
return Error; |
||||
} |
@ -0,0 +1,21 @@ |
||||
///////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
// OpenGL Mathematics Copyright (c) 2005 - 2013 G-Truc Creation (www.g-truc.net)
|
||||
///////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
// Created : 2013-10-25
|
||||
// Updated : 2013-10-25
|
||||
// Licence : This source is under MIT licence
|
||||
// File : test/gtx/associated_min_max.cpp
|
||||
///////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#include <emmintrin.h> |
||||
|
||||
#include <glm/glm.hpp> |
||||
#include <glm/gtc/type_precision.hpp> |
||||
#include <glm/gtx/associated_min_max.hpp> |
||||
|
||||
int main() |
||||
{ |
||||
int Error(0); |
||||
|
||||
return Error; |
||||
} |
@ -0,0 +1,19 @@ |
||||
///////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
// OpenGL Mathematics Copyright (c) 2005 - 2013 G-Truc Creation (www.g-truc.net)
|
||||
///////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
// Created : 2013-10-25
|
||||
// Updated : 2013-10-25
|
||||
// Licence : This source is under MIT licence
|
||||
// File : test/gtx/associated_min_max.cpp
|
||||
///////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#include <glm/glm.hpp> |
||||
#include <glm/gtc/type_precision.hpp> |
||||
#include <glm/gtx/fast_exponential.hpp> |
||||
|
||||
int main() |
||||
{ |
||||
int Error(0); |
||||
|
||||
return Error; |
||||
} |
@ -0,0 +1,19 @@ |
||||
///////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
// OpenGL Mathematics Copyright (c) 2005 - 2013 G-Truc Creation (www.g-truc.net)
|
||||
///////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
// Created : 2013-10-25
|
||||
// Updated : 2013-10-25
|
||||
// Licence : This source is under MIT licence
|
||||
// File : test/gtx/fast_square_root.cpp
|
||||
///////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#include <glm/glm.hpp> |
||||
#include <glm/gtc/type_precision.hpp> |
||||
#include <glm/gtx/fast_square_root.hpp> |
||||
|
||||
int main() |
||||
{ |
||||
int Error(0); |
||||
|
||||
return Error; |
||||
} |
@ -0,0 +1,19 @@ |
||||
///////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
// OpenGL Mathematics Copyright (c) 2005 - 2013 G-Truc Creation (www.g-truc.net)
|
||||
///////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
// Created : 2013-10-25
|
||||
// Updated : 2013-10-25
|
||||
// Licence : This source is under MIT licence
|
||||
// File : test/gtx/fast_trigonometry.cpp
|
||||
///////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#include <glm/glm.hpp> |
||||
#include <glm/gtc/type_precision.hpp> |
||||
#include <glm/gtx/fast_trigonometry.hpp> |
||||
|
||||
int main() |
||||
{ |
||||
int Error(0); |
||||
|
||||
return Error; |
||||
} |
@ -0,0 +1,19 @@ |
||||
///////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
// OpenGL Mathematics Copyright (c) 2005 - 2013 G-Truc Creation (www.g-truc.net)
|
||||
///////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
// Created : 2013-10-25
|
||||
// Updated : 2013-10-25
|
||||
// Licence : This source is under MIT licence
|
||||
// File : test/gtx/handed_coordinate_space.cpp
|
||||
///////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#include <glm/glm.hpp> |
||||
#include <glm/gtc/type_precision.hpp> |
||||
#include <glm/gtx/handed_coordinate_space.hpp> |
||||
|
||||
int main() |
||||
{ |
||||
int Error(0); |
||||
|
||||
return Error; |
||||
} |
@ -0,0 +1,19 @@ |
||||
///////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
// OpenGL Mathematics Copyright (c) 2005 - 2013 G-Truc Creation (www.g-truc.net)
|
||||
///////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
// Created : 2013-10-25
|
||||
// Updated : 2013-10-25
|
||||
// Licence : This source is under MIT licence
|
||||
// File : test/gtx/inertia.cpp
|
||||
///////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#include <glm/glm.hpp> |
||||
#include <glm/gtc/type_precision.hpp> |
||||
#include <glm/gtx/inertia.hpp> |
||||
|
||||
int main() |
||||
{ |
||||
int Error(0); |
||||
|
||||
return Error; |
||||
} |
@ -0,0 +1,21 @@ |
||||
///////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
// OpenGL Mathematics Copyright (c) 2005 - 2013 G-Truc Creation (www.g-truc.net)
|
||||
///////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
// Created : 2013-10-25
|
||||
// Updated : 2013-10-25
|
||||
// Licence : This source is under MIT licence
|
||||
// File : test/gtx/associated_min_max.cpp
|
||||
///////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#include <emmintrin.h> |
||||
|
||||
#include <glm/glm.hpp> |
||||
#include <glm/gtc/type_precision.hpp> |
||||
#include <glm/gtx/associated_min_max.hpp> |
||||
|
||||
int main() |
||||
{ |
||||
int Error(0); |
||||
|
||||
return Error; |
||||
} |
@ -0,0 +1,19 @@ |
||||
///////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
// OpenGL Mathematics Copyright (c) 2005 - 2013 G-Truc Creation (www.g-truc.net)
|
||||
///////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
// Created : 2013-10-25
|
||||
// Updated : 2013-10-25
|
||||
// Licence : This source is under MIT licence
|
||||
// File : test/gtx/intersect.cpp
|
||||
///////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#include <glm/glm.hpp> |
||||
#include <glm/gtc/type_precision.hpp> |
||||
#include <glm/gtx/intersect.hpp> |
||||
|
||||
int main() |
||||
{ |
||||
int Error(0); |
||||
|
||||
return Error; |
||||
} |
@ -0,0 +1,19 @@ |
||||
///////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
// OpenGL Mathematics Copyright (c) 2005 - 2013 G-Truc Creation (www.g-truc.net)
|
||||
///////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
// Created : 2013-10-25
|
||||
// Updated : 2013-10-25
|
||||
// Licence : This source is under MIT licence
|
||||
// File : test/gtx/log_base.cpp
|
||||
///////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#include <glm/glm.hpp> |
||||
#include <glm/gtc/type_precision.hpp> |
||||
#include <glm/gtx/log_base.hpp> |
||||
|
||||
int main() |
||||
{ |
||||
int Error(0); |
||||
|
||||
return Error; |
||||
} |
@ -0,0 +1,19 @@ |
||||
///////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
// OpenGL Mathematics Copyright (c) 2005 - 2013 G-Truc Creation (www.g-truc.net)
|
||||
///////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
// Created : 2013-10-25
|
||||
// Updated : 2013-10-25
|
||||
// Licence : This source is under MIT licence
|
||||
// File : test/gtx/matrix_cross_product.hpp
|
||||
///////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#include <glm/glm.hpp> |
||||
#include <glm/gtc/type_precision.hpp> |
||||
#include <glm/gtx/matrix_cross_product.hpp> |
||||
|
||||
int main() |
||||
{ |
||||
int Error(0); |
||||
|
||||
return Error; |
||||
} |
@ -0,0 +1,19 @@ |
||||
///////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
// OpenGL Mathematics Copyright (c) 2005 - 2013 G-Truc Creation (www.g-truc.net)
|
||||
///////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
// Created : 2013-10-25
|
||||
// Updated : 2013-10-25
|
||||
// Licence : This source is under MIT licence
|
||||
// File : test/gtx/matrix_major_storage.cpp
|
||||
///////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#include <glm/glm.hpp> |
||||
#include <glm/gtc/type_precision.hpp> |
||||
#include <glm/gtx/matrix_major_storage.hpp> |
||||
|
||||
int main() |
||||
{ |
||||
int Error(0); |
||||
|
||||
return Error; |
||||
} |
@ -0,0 +1,19 @@ |
||||
///////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
// OpenGL Mathematics Copyright (c) 2005 - 2013 G-Truc Creation (www.g-truc.net)
|
||||
///////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
// Created : 2013-10-25
|
||||
// Updated : 2013-10-25
|
||||
// Licence : This source is under MIT licence
|
||||
// File : test/gtx/matrix_operation.cpp
|
||||
///////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#include <glm/glm.hpp> |
||||
#include <glm/gtc/type_precision.hpp> |
||||
#include <glm/gtx/matrix_operation.hpp> |
||||
|
||||
int main() |
||||
{ |
||||
int Error(0); |
||||
|
||||
return Error; |
||||
} |
@ -0,0 +1,21 @@ |
||||
///////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
// OpenGL Mathematics Copyright (c) 2005 - 2013 G-Truc Creation (www.g-truc.net)
|
||||
///////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
// Created : 2013-10-25
|
||||
// Updated : 2013-10-25
|
||||
// Licence : This source is under MIT licence
|
||||
// File : test/gtx/associated_min_max.cpp
|
||||
///////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#include <emmintrin.h> |
||||
|
||||
#include <glm/glm.hpp> |
||||
#include <glm/gtc/type_precision.hpp> |
||||
#include <glm/gtx/associated_min_max.hpp> |
||||
|
||||
int main() |
||||
{ |
||||
int Error(0); |
||||
|
||||
return Error; |
||||
} |
@ -0,0 +1,19 @@ |
||||
///////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
// OpenGL Mathematics Copyright (c) 2005 - 2013 G-Truc Creation (www.g-truc.net)
|
||||
///////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
// Created : 2013-10-25
|
||||
// Updated : 2013-10-25
|
||||
// Licence : This source is under MIT licence
|
||||
// File : test/gtx/norm.cpp
|
||||
///////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#include <glm/glm.hpp> |
||||
#include <glm/gtc/type_precision.hpp> |
||||
#include <glm/gtx/norm.hpp> |
||||
|
||||
int main() |
||||
{ |
||||
int Error(0); |
||||
|
||||
return Error; |
||||
} |
@ -0,0 +1,19 @@ |
||||
///////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
// OpenGL Mathematics Copyright (c) 2005 - 2013 G-Truc Creation (www.g-truc.net)
|
||||
///////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
// Created : 2013-10-25
|
||||
// Updated : 2013-10-25
|
||||
// Licence : This source is under MIT licence
|
||||
// File : test/gtx/normal.cpp
|
||||
///////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#include <glm/glm.hpp> |
||||
#include <glm/gtc/type_precision.hpp> |
||||
#include <glm/gtx/normal.hpp> |
||||
|
||||
int main() |
||||
{ |
||||
int Error(0); |
||||
|
||||
return Error; |
||||
} |
@ -0,0 +1,19 @@ |
||||
///////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
// OpenGL Mathematics Copyright (c) 2005 - 2013 G-Truc Creation (www.g-truc.net)
|
||||
///////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
// Created : 2013-10-25
|
||||
// Updated : 2013-10-25
|
||||
// Licence : This source is under MIT licence
|
||||
// File : test/gtx/normalize_dot.cpp
|
||||
///////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#include <glm/glm.hpp> |
||||
#include <glm/gtc/type_precision.hpp> |
||||
#include <glm/gtx/normalize_dot.hpp> |
||||
|
||||
int main() |
||||
{ |
||||
int Error(0); |
||||
|
||||
return Error; |
||||
} |
@ -0,0 +1,19 @@ |
||||
///////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
// OpenGL Mathematics Copyright (c) 2005 - 2013 G-Truc Creation (www.g-truc.net)
|
||||
///////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
// Created : 2013-10-25
|
||||
// Updated : 2013-10-25
|
||||
// Licence : This source is under MIT licence
|
||||
// File : test/gtx/number_precision.cpp
|
||||
///////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#include <glm/glm.hpp> |
||||
#include <glm/gtc/type_precision.hpp> |
||||
#include <glm/gtx/number_precision.hpp> |
||||
|
||||
int main() |
||||
{ |
||||
int Error(0); |
||||
|
||||
return Error; |
||||
} |
@ -0,0 +1,19 @@ |
||||
///////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
// OpenGL Mathematics Copyright (c) 2005 - 2013 G-Truc Creation (www.g-truc.net)
|
||||
///////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
// Created : 2013-10-25
|
||||
// Updated : 2013-10-25
|
||||
// Licence : This source is under MIT licence
|
||||
// File : test/gtx/optimum_pow.cpp
|
||||
///////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#include <glm/glm.hpp> |
||||
#include <glm/gtc/type_precision.hpp> |
||||
#include <glm/gtx/optimum_pow.hpp> |
||||
|
||||
int main() |
||||
{ |
||||
int Error(0); |
||||
|
||||
return Error; |
||||
} |
@ -0,0 +1,19 @@ |
||||
///////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
// OpenGL Mathematics Copyright (c) 2005 - 2013 G-Truc Creation (www.g-truc.net)
|
||||
///////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
// Created : 2013-10-25
|
||||
// Updated : 2013-10-25
|
||||
// Licence : This source is under MIT licence
|
||||
// File : test/gtx/orthonormalize.cpp
|
||||
///////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#include <glm/glm.hpp> |
||||
#include <glm/gtc/type_precision.hpp> |
||||
#include <glm/gtx/orthonormalize.hpp> |
||||
|
||||
int main() |
||||
{ |
||||
int Error(0); |
||||
|
||||
return Error; |
||||
} |
@ -0,0 +1,19 @@ |
||||
///////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
// OpenGL Mathematics Copyright (c) 2005 - 2013 G-Truc Creation (www.g-truc.net)
|
||||
///////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
// Created : 2013-10-25
|
||||
// Updated : 2013-10-25
|
||||
// Licence : This source is under MIT licence
|
||||
// File : test/gtx/perpendicular.cpp
|
||||
///////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#include <glm/glm.hpp> |
||||
#include <glm/gtc/type_precision.hpp> |
||||
#include <glm/gtx/perpendicular.hpp> |
||||
|
||||
int main() |
||||
{ |
||||
int Error(0); |
||||
|
||||
return Error; |
||||
} |
@ -0,0 +1,19 @@ |
||||
///////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
// OpenGL Mathematics Copyright (c) 2005 - 2013 G-Truc Creation (www.g-truc.net)
|
||||
///////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
// Created : 2013-10-25
|
||||
// Updated : 2013-10-25
|
||||
// Licence : This source is under MIT licence
|
||||
// File : test/gtx/polar_coordinates.cpp
|
||||
///////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#include <glm/glm.hpp> |
||||
#include <glm/gtc/type_precision.hpp> |
||||
#include <glm/gtx/polar_coordinates.hpp> |
||||
|
||||
int main() |
||||
{ |
||||
int Error(0); |
||||
|
||||
return Error; |
||||
} |
@ -0,0 +1,19 @@ |
||||
///////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
// OpenGL Mathematics Copyright (c) 2005 - 2013 G-Truc Creation (www.g-truc.net)
|
||||
///////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
// Created : 2013-10-25
|
||||
// Updated : 2013-10-25
|
||||
// Licence : This source is under MIT licence
|
||||
// File : test/gtx/projection.cpp
|
||||
///////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#include <glm/glm.hpp> |
||||
#include <glm/gtc/type_precision.hpp> |
||||
#include <glm/gtx/projection.hpp> |
||||
|
||||
int main() |
||||
{ |
||||
int Error(0); |
||||
|
||||
return Error; |
||||
} |
@ -0,0 +1,19 @@ |
||||
///////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
// OpenGL Mathematics Copyright (c) 2005 - 2013 G-Truc Creation (www.g-truc.net)
|
||||
///////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
// Created : 2013-10-25
|
||||
// Updated : 2013-10-25
|
||||
// Licence : This source is under MIT licence
|
||||
// File : test/gtx/associated_min_max.cpp
|
||||
///////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#include <glm/glm.hpp> |
||||
#include <glm/gtc/type_precision.hpp> |
||||
#include <glm/gtx/spline.hpp> |
||||
|
||||
int main() |
||||
{ |
||||
int Error(0); |
||||
|
||||
return Error; |
||||
} |
Loading…
Reference in New Issue