summaryrefslogtreecommitdiffstats
path: root/include/GL
diff options
context:
space:
mode:
authorKristian Høgsberg <[email protected]>2007-05-22 12:26:02 -0400
committerKristian Høgsberg <[email protected]>2007-10-11 11:28:38 -0400
commitf29f0ae8383888a6493b615edc3bab254cf6df39 (patch)
tree12b5141ff30ab7f89ddfc9326c4ca3590b80c436 /include/GL
parentecdb45cb29e3209287cc297081596126e955ff2b (diff)
Move new texOffset extension to the new extension mechanism.
Diffstat (limited to 'include/GL')
-rw-r--r--include/GL/internal/dri_interface.h29
1 files changed, 17 insertions, 12 deletions
diff --git a/include/GL/internal/dri_interface.h b/include/GL/internal/dri_interface.h
index 46f1f441d01..1efae11d621 100644
--- a/include/GL/internal/dri_interface.h
+++ b/include/GL/internal/dri_interface.h
@@ -63,6 +63,7 @@ typedef struct __DRIswapControlExtensionRec __DRIswapControlExtension;
typedef struct __DRIallocateExtensionRec __DRIallocateExtension;
typedef struct __DRIframeTrackingExtensionRec __DRIframeTrackingExtension;
typedef struct __DRImediaStreamCounterExtensionRec __DRImediaStreamCounterExtension;
+typedef struct __DRItexOffsetExtensionRec __DRItexOffsetExtension;
/*@}*/
@@ -169,6 +170,22 @@ struct __DRImediaStreamCounterExtensionRec {
};
+#define __DRI_TEX_OFFSET "DRI_TexOffset"
+struct __DRItexOffsetExtensionRec {
+ __DRIextension base;
+
+ /**
+ * Method to override base texture image with a driver specific 'offset'.
+ * The depth passed in allows e.g. to ignore the alpha channel of texture
+ * images where the non-alpha components don't occupy a whole texel.
+ *
+ * For GLX_EXT_texture_from_pixmap with AIGLX.
+ */
+ void (*setTexOffset)(__DRIcontext *pDRICtx, GLint texname,
+ unsigned long long offset, GLint depth, GLuint pitch);
+};
+
+
/**
* Macros for building symbol and strings. Standard CPP two step...
*/
@@ -379,18 +396,6 @@ struct __DRIscreenRec {
int render_type,
__DRIcontext *shared,
drm_context_t hwContext, __DRIcontext *pctx);
-
- /**
- * Method to override base texture image with a driver specific 'offset'.
- * The depth passed in allows e.g. to ignore the alpha channel of texture
- * images where the non-alpha components don't occupy a whole texel.
- *
- * For GLX_EXT_texture_from_pixmap with AIGLX.
- *
- * \since Internal API version 20070121.
- */
- void (*setTexOffset)(__DRIcontext *pDRICtx, GLint texname,
- unsigned long long offset, GLint depth, GLuint pitch);
};
/**