| 0.8.1 API documentation

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

- File List

view.hpp
Go to the documentation of this file.
1
4 #pragma once
5
6 #include "image.hpp"
7 #include "texture.hpp"
8 #include "texture1d.hpp"
9 #include "texture1d_array.hpp"
10 #include "texture2d.hpp"
11 #include "texture2d_array.hpp"
12 #include "texture3d.hpp"
13 #include "texture_cube.hpp"
14 #include "texture_cube_array.hpp"
15
16 namespace gli
17 {
19 image view(image const & Image);
20
22 texture view(texture const & Texture);
23
25 texture view(
26 texture const & Texture,
27 texture::size_type BaseLayer, texture::size_type MaxLayer,
28 texture::size_type BaseFace, texture::size_type MaxFace,
29 texture::size_type BaseLevel, texture::size_type MaxLevel);
30
32 template <typename texType>
33 texture view(texType const & Texture);
34
37 template <typename texType>
38 texture view(texType const & Texture, format Format);
39
41 texture view(
42 texture1d const & Texture,
43 texture1d::size_type BaseLevel, texture1d::size_type MaxLevel);
44
46 texture view(
47 texture1d_array const & Texture,
48 texture1d_array::size_type BaseLayer, texture1d_array::size_type MaxLayer,
49 texture1d_array::size_type BaseLevel, texture1d_array::size_type MaxLevel);
50
52 texture view(
53 texture2d const & Texture,
54 texture2d::size_type BaseLevel, texture2d::size_type MaxLevel);
55
57 texture view(
58 texture2d_array const & Texture,
59 texture2d_array::size_type BaseLayer, texture2d_array::size_type MaxLayer,
60 texture2d_array::size_type BaseLevel, texture2d_array::size_type MaxLevel);
61
63 texture view(
64 texture3d const & Texture,
65 texture3d::size_type BaseLevel, texture3d::size_type MaxLevel);
66
68 texture view(
69 texture_cube const & Texture,
70 texture_cube::size_type BaseFace, texture_cube::size_type MaxFace,
71 texture_cube::size_type BaseLevel, texture_cube::size_type MaxLevel);
72
74 texture view(
75 texture_cube_array const & Texture,
76 texture_cube_array::size_type BaseLayer, texture_cube_array::size_type MaxLayer,
77 texture_cube_array::size_type BaseFace, texture_cube_array::size_type MaxFace,
78 texture_cube_array::size_type BaseLevel, texture_cube_array::size_type MaxLevel);
79 }//namespace gli
80
81 #include "./core/view.inl"
texture1d.hpp
Include to use 1d textures.
image.hpp
Include to use images, a representation of a single texture level.
texture.hpp
Include to use generic textures which can represent any texture target but they don't have target spe...
texture2d.hpp
Include to use 2d textures.
gli
Namespace where all the classes and functions provided by GLI are exposed.
Definition: clear.hpp:6
texture1d_array.hpp
Include to use 1d array textures.
gli::format
format
Texture data format.
Definition: format.hpp:12
texture_cube_array.hpp
Include to use cube map array textures.
texture3d.hpp
Include to use 3d textures.
gli::view
image view(image const &Image)
Create an image view of an existing image, sharing the same memory storage_linear.
texture_cube.hpp
Include to use cube map textures.
texture2d_array.hpp
Include to use 2d array textures.