GLI  0.6.0
view.hpp
Go to the documentation of this file.
1 
29 #pragma once
30 
31 #include "image.hpp"
32 #include "texture1d.hpp"
33 #include "texture1d_array.hpp"
34 #include "texture2d.hpp"
35 #include "texture2d_array.hpp"
36 #include "texture3d.hpp"
37 #include "texture_cube.hpp"
38 #include "texture_cube_array.hpp"
39 
40 namespace gli
41 {
42  image view(image const & Image);
43 
44  template <typename texture>
45  texture view(texture const & Texture);
46 
47  texture1D view(
48  texture1D const & Texture,
49  texture1D::size_type const & BaseLevel,
50  texture1D::size_type const & MaxLevel);
51 
52  texture2D view(
53  texture2D const & Texture,
54  texture2D::size_type const & BaseLevel,
55  texture2D::size_type const & MaxLevel);
56 
57  texture3D view(
58  texture3D const & Texture,
59  texture3D::size_type const & BaseLevel,
60  texture3D::size_type const & MaxLevel);
61 
62  // texture can be texture1DArray, texture2DArray
63  template <typename texture>
64  texture view(
65  texture const & Texture,
66  typename texture::size_type const & BaseLayer,
67  typename texture::size_type const & MaxLayer,
68  typename texture::size_type const & BaseLevel,
69  typename texture::size_type const & MaxLevel);
70 
71  textureCube view(
72  textureCube const & Texture,
73  textureCube::size_type const & BaseFace,
74  textureCube::size_type const & MaxFace,
75  textureCube::size_type const & BaseLevel,
76  textureCube::size_type const & MaxLevel);
77 
78  textureCubeArray view(
79  textureCubeArray const & Texture,
80  textureCubeArray::size_type const & BaseLayer,
81  textureCubeArray::size_type const & MaxLayer,
82  textureCubeArray::size_type const & BaseFace,
83  textureCubeArray::size_type const & MaxFace,
84  textureCubeArray::size_type const & BaseLevel,
85  textureCubeArray::size_type const & MaxLevel);
86 }//namespace gli
87 
88 #include "view.inl"
OpenGL Image (gli.g-truc.net)
storage::size_type size_type
Definition: texture3d.hpp:40
image view(image const &Image)
OpenGL Image (gli.g-truc.net)
storage::size_type size_type
OpenGL Image (gli.g-truc.net)
OpenGL Image (gli.g-truc.net)
storage::size_type size_type
Definition: texture1d.hpp:42
OpenGL Image (gli.g-truc.net)
OpenGL Image (gli.g-truc.net)
OpenGL Image (gli.g-truc.net)
storage::size_type size_type
Definition: texture2d.hpp:45
storage::size_type size_type
OpenGL Image (gli.g-truc.net)