From 8567d003d55769287a4ce0d87573216b42e13064 Mon Sep 17 00:00:00 2001 From: Kristian Høgsberg Date: Thu, 5 Mar 2009 07:40:48 -0500 Subject: Add a DRI CopyBuffer extension to expose 2d blits. --- include/GL/internal/dri_interface.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'include') diff --git a/include/GL/internal/dri_interface.h b/include/GL/internal/dri_interface.h index 27cc1be7ff..12dd726467 100644 --- a/include/GL/internal/dri_interface.h +++ b/include/GL/internal/dri_interface.h @@ -646,6 +646,19 @@ struct __DRIdri2LoaderExtensionRec { int *out_count, void *loaderPrivate); }; +#define __DRI_COPY_BUFFER "DRI_CopyBuffer" +#define __DRI_COPY_BUFFER_VERSION 1 +typedef struct __DRIcopyBufferExtensionRec __DRIcopyBufferExtension; +struct __DRIcopyBufferExtensionRec { + __DRIextension base; + + int (*copyBuffer)(__DRIcontext *context, + __DRIbuffer *dst, int dst_x, int dst_y, + __DRIdrawable *src, unsigned int src_attachment, + int x, int y, int width, int height); +}; + + /** * This extension provides alternative screen, drawable and context * constructors for DRI2. -- cgit v1.2.3