GLI  0.6.0
copy.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 copy(image const & Image);
43 
44  template <typename texture>
45  texture copy(texture const & Texture);
46 
47  texture2D copy(texture2D const & Texture, texture2D::format_type Format);
48 
49  texture1D copy(
50  texture1D const & Texture,
51  texture1D::size_type const & BaseLevel,
52  texture1D::size_type const & MaxLevel);
53 
54  texture2D copy(
55  texture2D const & Texture,
56  texture2D::size_type const & BaseLevel,
57  texture2D::size_type const & MaxLevel);
58 
59  texture3D copy(
60  texture3D const & Texture,
61  texture3D::size_type const & BaseLevel,
62  texture3D::size_type const & MaxLevel);
63 
64  // texture can be texture1DArray, texture2DArray
65  template <typename texture>
66  texture copy(
67  texture const & Texture,
68  typename texture::size_type const & BaseLayer,
69  typename texture::size_type const & MaxLayer,
70  typename texture::size_type const & BaseLevel,
71  typename texture::size_type const & MaxLevel);
72 
73  textureCube copy(
74  textureCube const & Texture,
75  textureCube::size_type const & BaseFace,
76  textureCube::size_type const & MaxFace,
77  textureCube::size_type const & BaseLevel,
78  textureCube::size_type const & MaxLevel);
79 
80  textureCubeArray copy(
81  textureCubeArray const & Texture,
82  textureCubeArray::size_type const & BaseLayer,
83  textureCubeArray::size_type const & MaxLayer,
84  textureCubeArray::size_type const & BaseFace,
85  textureCubeArray::size_type const & MaxFace,
86  textureCubeArray::size_type const & BaseLevel,
87  textureCubeArray::size_type const & MaxLevel);
88 }//namespace gli
89 
90 #include "copy.inl"
OpenGL Image (gli.g-truc.net)
storage::size_type size_type
Definition: texture3d.hpp:40
OpenGL Image (gli.g-truc.net)
storage::format_type format_type
Definition: texture2d.hpp:46
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
image copy(image const &Image)
OpenGL Image (gli.g-truc.net)