diff options
author | Kristian Høgsberg <krh@redhat.com> | 2009-03-05 07:40:48 -0500 |
---|---|---|
committer | Kristian Høgsberg <krh@redhat.com> | 2009-03-05 07:46:44 -0500 |
commit | 8567d003d55769287a4ce0d87573216b42e13064 (patch) | |
tree | a68e9480e29a8c71bd8ffde0634e29080ed93706 /include/GL | |
parent | faa6d8af59c69b0c0239f64363b170619e2a9827 (diff) |
Add a DRI CopyBuffer extension to expose 2d blits.
Diffstat (limited to 'include/GL')
-rw-r--r-- | include/GL/internal/dri_interface.h | 13 |
1 files changed, 13 insertions, 0 deletions
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. |