raw_data.hpp 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. /// @ref gtx_raw_data
  2. /// @file glm/gtx/raw_data.hpp
  3. ///
  4. /// @see core (dependence)
  5. ///
  6. /// @defgroup gtx_raw_data GLM_GTX_raw_data
  7. /// @ingroup gtx
  8. ///
  9. /// Include <glm/gtx/raw_data.hpp> to use the features of this extension.
  10. ///
  11. /// Projection of a vector to other one
  12. #pragma once
  13. // Dependencies
  14. #include "../ext/scalar_uint_sized.hpp"
  15. #include "../detail/setup.hpp"
  16. #ifndef GLM_ENABLE_EXPERIMENTAL
  17. # error "GLM: GLM_GTX_raw_data is an experimental extension and may change in the future. Use #define GLM_ENABLE_EXPERIMENTAL before including it, if you really want to use it."
  18. #elif GLM_MESSAGES == GLM_ENABLE && !defined(GLM_EXT_INCLUDED)
  19. # pragma message("GLM: GLM_GTX_raw_data extension included")
  20. #endif
  21. namespace glm
  22. {
  23. /// @addtogroup gtx_raw_data
  24. /// @{
  25. //! Type for byte numbers.
  26. //! From GLM_GTX_raw_data extension.
  27. typedef detail::uint8 byte;
  28. //! Type for word numbers.
  29. //! From GLM_GTX_raw_data extension.
  30. typedef detail::uint16 word;
  31. //! Type for dword numbers.
  32. //! From GLM_GTX_raw_data extension.
  33. typedef detail::uint32 dword;
  34. //! Type for qword numbers.
  35. //! From GLM_GTX_raw_data extension.
  36. typedef detail::uint64 qword;
  37. /// @}
  38. }// namespace glm
  39. #include "raw_data.inl"