1.1 KB、36行 生 Blame 履歴
1/// @ref ext_quaternion_float_precision
2/// @file glm/ext/quaternion_float_precision.hpp
3///
4/// @defgroup ext_quaternion_float_precision GLM_EXT_quaternion_float_precision
5/// @ingroup ext
6///
7/// Exposes single-precision floating point quaternion type with various precision in term of ULPs.
8///
9/// Include <glm/ext/quaternion_float_precision.hpp> to use the features of this extension.
10
11#pragma once
12
13// Dependency:
14#include "../detail/type_quat.hpp"
15
16#if GLM_MESSAGES == GLM_ENABLE && !defined(GLM_EXT_INCLUDED)
17# pragma message("GLM: GLM_EXT_quaternion_float_precision extension included")
18#endif
19
20namespace glm
21{
22 /// @addtogroup ext_quaternion_float_precision
23 /// @{
24
25 /// Quaternion of single-precision floating-point numbers using high precision arithmetic in term of ULPs.
26 typedef qua<float, lowp> lowp_quat;
27
28 /// Quaternion of single-precision floating-point numbers using high precision arithmetic in term of ULPs.
29 typedef qua<float, mediump> mediump_quat;
30
31 /// Quaternion of single-precision floating-point numbers using high precision arithmetic in term of ULPs.
32 typedef qua<float, highp> highp_quat;
33
34 /// @}
35} //namespace glm
36