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