quaternion_float_precision.hpp 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637
  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. #pragma once
  11. // Dependency:
  12. #include "../detail/type_quat.hpp"
  13. #if GLM_MESSAGES == GLM_ENABLE && !defined(GLM_EXT_INCLUDED)
  14. # pragma message("GLM: GLM_EXT_quaternion_float_precision extension included")
  15. #endif
  16. namespace glm
  17. {
  18. /// @addtogroup ext_quaternion_float_precision
  19. /// @{
  20. /// Quaternion of single-precision floating-point numbers using high precision arithmetic in term of ULPs.
  21. typedef qua<float, lowp> lowp_quat;
  22. /// Quaternion of single-precision floating-point numbers using high precision arithmetic in term of ULPs.
  23. typedef qua<float, mediump> mediump_quat;
  24. /// Quaternion of single-precision floating-point numbers using high precision arithmetic in term of ULPs.
  25. typedef qua<float, highp> highp_quat;
  26. /// @}
  27. } //namespace glm