texture.hpp 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. /// @ref gtx_texture
  2. /// @file glm/gtx/texture.hpp
  3. ///
  4. /// @see core (dependence)
  5. ///
  6. /// @defgroup gtx_texture GLM_GTX_texture
  7. /// @ingroup gtx
  8. ///
  9. /// Include <glm/gtx/texture.hpp> to use the features of this extension.
  10. ///
  11. /// Wrapping mode of texture coordinates.
  12. #pragma once
  13. // Dependency:
  14. #include "../glm.hpp"
  15. #include "../gtc/integer.hpp"
  16. #include "../gtx/component_wise.hpp"
  17. #if GLM_MESSAGES == GLM_ENABLE && !defined(GLM_EXT_INCLUDED)
  18. # ifndef GLM_ENABLE_EXPERIMENTAL
  19. # pragma message("GLM: GLM_GTX_texture 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.")
  20. # else
  21. # pragma message("GLM: GLM_GTX_texture extension included")
  22. # endif
  23. #endif
  24. namespace glm
  25. {
  26. /// @addtogroup gtx_texture
  27. /// @{
  28. /// Compute the number of mipmaps levels necessary to create a mipmap complete texture
  29. ///
  30. /// @param Extent Extent of the texture base level mipmap
  31. /// @tparam L Integer between 1 and 4 included that qualify the dimension of the vector
  32. /// @tparam T Floating-point or signed integer scalar types
  33. /// @tparam Q Value from qualifier enum
  34. template <length_t L, typename T, qualifier Q>
  35. T levels(vec<L, T, Q> const& Extent);
  36. /// @}
  37. }// namespace glm
  38. #include "texture.inl"