Move the copySubBuffer extension over to the new mechanism.

This commit is contained in:
Kristian Høgsberg
2007-05-15 15:17:30 -04:00
committed by Kristian Høgsberg
parent f616a263a2
commit ac3e838fa7
9 changed files with 65 additions and 23 deletions
+10 -8
View File
@@ -58,6 +58,7 @@ typedef struct __DRIversionRec __DRIversion;
typedef struct __DRIinterfaceMethodsRec __DRIinterfaceMethods;
typedef struct __DRIextensionRec __DRIextension;
typedef struct __DRIcopySubBufferExtensionRec __DRIcopySubBufferExtension;
/*@}*/
@@ -73,6 +74,15 @@ struct __DRIextensionRec {
const char *name;
};
/**
* Used by drivers that implement the GLX_MESA_copy_sub_buffer extension.
*/
#define __DRI_COPY_SUB_BUFFER "DRI_CopySubBuffer"
struct __DRIcopySubBufferExtensionRec {
__DRIextension base;
void (*copySubBuffer)(__DRIdrawable *drawable, int x, int y, int w, int h);
};
/**
* \name Functions provided by the driver loader.
@@ -481,14 +491,6 @@ struct __DRIdrawableRec {
* \since Internal API version 20030317.
*/
unsigned swap_interval;
/**
* Used by drivers that implement the GLX_MESA_copy_sub_buffer extension.
*
* \since Internal API version 20060314.
*/
void (*copySubBuffer)(__DRIdrawable *drawable,
int x, int y, int w, int h);
};
#endif