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