GLI  0.5.0
copy.hpp
Go to the documentation of this file.
1 
29 #ifndef GLI_CORE_COPY_INCLUDED
30 #define GLI_CORE_COPY_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 copy(image const & Image);
44 
45  template <typename texture>
46  texture copy(texture const & Texture);
47 
48  texture1D copy(
49  texture1D const & Texture,
50  texture1D::size_type const & BaseLevel,
51  texture1D::size_type const & MaxLevel);
52 
53  texture2D copy(
54  texture2D const & Texture,
55  texture2D::size_type const & BaseLevel,
56  texture2D::size_type const & MaxLevel);
57 
58  texture3D copy(
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 copy(
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 copy(
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 copy(
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 "copy.inl"
90 
91 #endif//GLI_CORE_COPY_INCLUDED
92 
93 /*
94 void glCopyImageSubData( GLuint srcName,
95  GLenum srcTarget,
96  GLint srcLevel,
97  GLint srcX,
98  GLint srcY,
99  GLint srcZ,
100  GLuint dstName,
101  GLenum dstTarget,
102  GLint dstLevel,
103  GLint dstX,
104  GLint dstY,
105  GLint dstZ,
106  GLsizei srcWidth,
107  GLsizei srcHeight,
108  GLsizei srcDepth);
109 */
OpenGL Image (gli.g-truc.net)
storage::size_type size_type
Definition: texture3d.hpp:41
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
image copy(image const &Image)
OpenGL Image (gli.g-truc.net)