integer.hpp 1022 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. /// @ref gtc_integer
  2. /// @file glm/gtc/integer.hpp
  3. ///
  4. /// @see core (dependence)
  5. /// @see gtc_integer (dependence)
  6. ///
  7. /// @defgroup gtc_integer GLM_GTC_integer
  8. /// @ingroup gtc
  9. ///
  10. /// Include <glm/gtc/integer.hpp> to use the features of this extension.
  11. ///
  12. /// @brief Allow to perform bit operations on integer values
  13. #pragma once
  14. // Dependencies
  15. #include "../detail/setup.hpp"
  16. #include "../detail/qualifier.hpp"
  17. #include "../common.hpp"
  18. #include "../integer.hpp"
  19. #include "../exponential.hpp"
  20. #include "../ext/scalar_common.hpp"
  21. #include "../ext/vector_common.hpp"
  22. #include <limits>
  23. #if GLM_MESSAGES == GLM_ENABLE && !defined(GLM_EXT_INCLUDED)
  24. # pragma message("GLM: GLM_GTC_integer extension included")
  25. #endif
  26. namespace glm
  27. {
  28. /// @addtogroup gtc_integer
  29. /// @{
  30. /// Returns the log2 of x for integer values. Usefull to compute mipmap count from the texture size.
  31. /// @see gtc_integer
  32. template<typename genIUType>
  33. GLM_FUNC_DECL genIUType log2(genIUType x);
  34. /// @}
  35. } //namespace glm
  36. #include "integer.inl"