texture.hpp 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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. #ifndef GLM_ENABLE_EXPERIMENTAL
  18. # error "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."
  19. #endif
  20. #if GLM_MESSAGES == GLM_ENABLE && !defined(GLM_EXT_INCLUDED)
  21. # pragma message("GLM: GLM_GTX_texture extension included")
  22. #endif
  23. namespace glm
  24. {
  25. /// @addtogroup gtx_texture
  26. /// @{
  27. /// Compute the number of mipmaps levels necessary to create a mipmap complete texture
  28. ///
  29. /// @param Extent Extent of the texture base level mipmap
  30. /// @tparam L Integer between 1 and 4 included that qualify the dimension of the vector
  31. /// @tparam T Floating-point or signed integer scalar types
  32. /// @tparam Q Value from qualifier enum
  33. template <length_t L, typename T, qualifier Q>
  34. T levels(vec<L, T, Q> const& Extent);
  35. /// @}
  36. }// namespace glm
  37. #include "texture.inl"