| 0.8.0 API documentation

- Main Page
- Related Pages
- Namespaces
- Classes
- Files

- File List

levels.hpp
Go to the documentation of this file.
1
4 #pragma once
5
6 #include "type.hpp"
7
8 namespace gli
9 {
21 template <typename T, precision P, template <typename, precision> class vecType>
22 T levels(vecType<T, P> const & Extent);
23 /*
33 size_t levels(size_t Extent);
34
44 int levels(int Extent);
45 */
46 }//namespace gli
47
48 #include "./core/levels.inl"
gli::levels
T levels(vecType< T, P > const &Extent)
Compute the number of mipmaps levels necessary to create a mipmap complete texture.
gli
Namespace where all the classes and functions provided by GLI are exposed.
Definition: comparison.hpp:15
type.hpp
Include to use basic GLI types.