0.9.9 API documentation
Loading...
Searching...
No Matches
glm
gtx
texture.hpp
Go to the documentation of this file.
1
12
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
component_wise.hpp
GLM_GTX_component_wise
glm.hpp
Core features
glm::levels
T levels(vec< L, T, Q > const &Extent)
Compute the number of mipmaps levels necessary to create a mipmap complete texture.
integer.hpp
GLM_GTC_integer
Generated by
1.12.0