| 0.8.0 API documentation

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

- File List

generate_mipmaps.hpp
Go to the documentation of this file.
1
4 #pragma once
5
6 #include "texture1d.hpp"
7 #include "texture1d_array.hpp"
8 #include "texture2d.hpp"
9 #include "texture2d_array.hpp"
10 #include "texture3d.hpp"
11 #include "texture_cube.hpp"
12 #include "texture_cube_array.hpp"
13 #include "filter.hpp"
14
15 namespace gli
16 {
18 template <typename texture_type>
19 texture_type generate_mipmaps(texture_type const & Texture, filter Minification);
20
22 texture1d generate_mipmaps(
23 texture1d const & Texture,
24 texture1d::size_type BaseLevel, texture1d::size_type MaxLevel,
25 filter Minification);
26
28 texture1d_array generate_mipmaps(
29 texture1d_array const & Texture,
30 texture1d_array::size_type BaseLayer, texture1d_array::size_type MaxLayer,
31 texture1d_array::size_type BaseLevel, texture1d_array::size_type MaxLevel,
32 filter Minification);
33
35 texture2d generate_mipmaps(
36 texture2d const & Texture,
37 texture2d::size_type BaseLevel, texture2d::size_type MaxLevel,
38 filter Minification);
39
41 texture2d_array generate_mipmaps(
42 texture2d_array const & Texture,
43 texture2d_array::size_type BaseLayer, texture2d_array::size_type MaxLayer,
44 texture2d_array::size_type BaseLevel, texture2d_array::size_type MaxLevel,
45 filter Minification);
46
48 texture3d generate_mipmaps(
49 texture3d const & Texture,
50 texture3d::size_type BaseLevel, texture3d::size_type MaxLevel,
51 filter Minification);
52
54 texture_cube generate_mipmaps(
55 texture_cube const & Texture,
56 texture_cube::size_type BaseFace, texture_cube::size_type MaxFace,
57 texture_cube::size_type BaseLevel, texture_cube::size_type MaxLevel,
58 filter Minification);
59
61 texture_cube_array generate_mipmaps(
62 texture_cube_array const & Texture,
63 texture_cube_array::size_type BaseLayer, texture_cube_array::size_type MaxLayer,
64 texture_cube_array::size_type BaseFace, texture_cube_array::size_type MaxFace,
65 texture_cube_array::size_type BaseLevel, texture_cube_array::size_type MaxLevel,
66 filter Minification);
67 }//namespace gli
68
69 #include "./core/generate_mipmaps.inl"
texture2d.hpp
Include to use 2d textures.
gli
Namespace where all the classes and functions provided by GLI are exposed.
Definition: comparison.hpp:15
filter.hpp
Include to use filter enum, to select filtering methods.
gli::filter
filter
Texture filtring modes.
Definition: filter.hpp:18
texture1d_array.hpp
Include to use 1d array textures.
texture3d.hpp
Include to use 3d textures.
gli::generate_mipmaps
texture_type generate_mipmaps(texture_type const &Texture, filter Minification)
Allocate a texture and generate all the mipmaps of the texture using the Minification filter...
texture1d.hpp
Include to use 1d textures.
texture2d_array.hpp
Include to use 2d array textures.
texture_cube_array.hpp
Include to use cube map array textures.
texture_cube.hpp
Include to use cube map textures.