/usr/include/gli/levels.hpp is in libgli-dev 0.8.2.0+ds1-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 | /// @brief Include to compute the number of mipmaps levels necessary to create a mipmap complete texture.
/// @file gli/levels.hpp
#pragma once
#include "type.hpp"
namespace gli
{
/// Compute the number of mipmaps levels necessary to create a mipmap complete texture
///
/// @param Extent Extent of the texture base level mipmap
/// @tparam vecType Vector type used to express the dimensions of a texture of any kind.
/// @code
/// #include <gli/texture2d.hpp>
/// #include <gli/levels.hpp>
/// ...
/// gli::texture2d::extent_type Extent(32, 10);
/// gli::texture2d Texture(gli::levels(Extent));
/// @endcode
template <typename T, precision P, template <typename, precision> class vecType>
T levels(vecType<T, P> const& Extent);
/*
/// Compute the number of mipmaps levels necessary to create a mipmap complete texture
///
/// @param Extent Extent of the texture base level mipmap
/// @code
/// #include <gli/texture2d.hpp>
/// #include <gli/levels.hpp>
/// ...
/// gli::texture2d Texture(32);
/// @endcode
size_t levels(size_t Extent);
/// Compute the number of mipmaps levels necessary to create a mipmap complete texture
///
/// @param Extent Extent of the texture base level mipmap
/// @code
/// #include <gli/texture2d.hpp>
/// #include <gli/levels.hpp>
/// ...
/// gli::texture2d Texture(32);
/// @endcode
int levels(int Extent);
*/
}//namespace gli
#include "./core/levels.inl"
|