13 #ifndef OGLPLUS_EXT_ARB_COPY_IMAGE_1406270722_HPP
14 #define OGLPLUS_EXT_ARB_COPY_IMAGE_1406270722_HPP
16 #if OGLPLUS_DOCUMENTATION_ONLY || GL_ARB_copy_image
34 template <
typename SrcObjTag,
typename DstObjTag>
35 static void _chk_params(
void)
38 std::is_same<SrcObjTag, tag::Texture>() ||
39 std::is_same<SrcObjTag, tag::Renderbuffer>(),
40 "Source object must be a Texture or a Renderbuffer"
43 std::is_same<DstObjTag, tag::Texture>() ||
44 std::is_same<DstObjTag, tag::Renderbuffer>(),
45 "Destination object must be a Texture or a Renderbuffer"
49 OGLPLUS_EXTENSION_CLASS(ARB, copy_image)
51 template <
typename SrcObjTag,
typename DstObjTag>
52 static void CopyImageSubData(
54 typename ObjBindingOps<SrcObjTag>::Target src_target,
56 GLint src_x, GLint src_y, GLint src_z,
58 typename ObjBindingOps<DstObjTag>::Target dst_target,
60 GLint dst_x, GLint dst_y, GLint dst_z,
61 GLsizei width, GLsizei height, GLsizei depth
64 _chk_params<SrcObjTag, DstObjTag>();
65 OGLPLUS_GLFUNC(CopyImageSubData)(
80 SubjectBinding(dst_target).
82 ObjectBinding(src_target)
89 #endif // ARB_copy_image
91 #endif // include guard
Funcions and classes for handling and wrapping OpenGL extensions.
Wrapper for the ARB_copy_image extension.
Definition: ARB_copy_image.hpp:31
Declaration of OGLplus object-related error.
GLuint GetGLName(ObjectName< ObjTag > named)
Returns the GLuint OpenGL name assigned to named object.
Definition: name.hpp:38
Base class for OpenGL "named" objects.
A common template for "named" objects like textures, buffers, etc.
Definition: fwd.hpp:136