FlukyEngine
Functions

Include <glm/gtx/texture.hpp> to use the features of this extension. More...

Collaboration diagram for GLM_GTX_texture:

Functions

template<length_t L, typename T , qualifier Q>
glm::levels (vec< L, T, Q > const &Extent)
 Compute the number of mipmaps levels necessary to create a mipmap complete texture. More...
 

Detailed Description

Include <glm/gtx/texture.hpp> to use the features of this extension.

Wrapping mode of texture coordinates.

Function Documentation

◆ levels()

template<length_t L, typename T , qualifier Q>
T glm::levels ( vec< L, T, Q > const &  Extent)
inline

Compute the number of mipmaps levels necessary to create a mipmap complete texture.

Parameters
ExtentExtent of the texture base level mipmap
Template Parameters
LInteger between 1 and 4 included that qualify the dimension of the vector
TFloating-point or signed integer scalar types
QValue from qualifier enum