0.6.1
levels.hpp
Go to the documentation of this file.
1 
32 #pragma once
33 
34 #include "type.hpp"
35 
36 namespace gli
37 {
49  template <template <typename, glm::precision> class dimType>
50  size_t levels(dimType<size_t, glm::defaultp> const & Dimensions);
51 
62  size_t levels(size_t Dimension);
63 }//namespace gli
64 
65 #include "levels.inl"
OpenGL Image (gli.g-truc.net)
size_t levels(dimType< size_t, glm::defaultp > const &Dimensions)
Compute the number of mipmaps levels necessary to create a mipmap complete texture.