| 0.9.9 API documentation

- Main Page
- Modules
- Files

- File List

texture.hpp
Go to the documentation of this file.
1
13 #pragma once
14
15 // Dependency:
16 #include "../glm.hpp"
17 #include "../gtc/integer.hpp"
18 #include "../gtx/component_wise.hpp"
19
20 #if GLM_MESSAGES == GLM_ENABLE && !defined(GLM_EXT_INCLUDED)
21 # ifndef GLM_ENABLE_EXPERIMENTAL
22 # 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.")
23 # else
24 # pragma message("GLM: GLM_GTX_texture extension included")
25 # endif
26 #endif
27
28 namespace glm
29 {
32
39 template <length_t L, typename T, qualifier Q>
40 T levels(vec<L, T, Q> const& Extent);
41
43 }// namespace glm
44
45 #include "texture.inl"
46
glm::levels
T levels(vec< L, T, Q > const &Extent)
Compute the number of mipmaps levels necessary to create a mipmap complete texture.
glm
Definition: common.hpp:20