summaryrefslogtreecommitdiff
path: root/src/mesa/main/dd.h
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2000-03-20 14:37:52 +0000
committerBrian Paul <brian.paul@tungstengraphics.com>2000-03-20 14:37:52 +0000
commitf7b5707d66678f09bec652ecce024a0da6cc4a4b (patch)
tree13f27f3da0c93943ff0e9526901aca957d635b4d /src/mesa/main/dd.h
parent8a90cabf8190eaaf37ec1eb265b71d2e163641e3 (diff)
added device driver functions for CopyTexImage, CopyTexSubImage, GetTexImage
Diffstat (limited to 'src/mesa/main/dd.h')
-rw-r--r--src/mesa/main/dd.h46
1 files changed, 45 insertions, 1 deletions
diff --git a/src/mesa/main/dd.h b/src/mesa/main/dd.h
index fd6874cd3d..60f3bcdefa 100644
--- a/src/mesa/main/dd.h
+++ b/src/mesa/main/dd.h
@@ -1,4 +1,4 @@
-/* $Id: dd.h,v 1.17 2000/03/07 18:24:49 brianp Exp $ */
+/* $Id: dd.h,v 1.18 2000/03/20 14:37:52 brianp Exp $ */
/*
* Mesa 3-D graphics library
@@ -593,6 +593,50 @@ struct dd_function_table {
* Called from glTexSubImage() to define a sub-region of a texture.
*/
+ GLboolean (*CopyTexImage1D)( GLcontext *ctx, GLenum target, GLint level,
+ GLenum internalFormat, GLint x, GLint y,
+ GLsizei width, GLint border );
+ GLboolean (*CopyTexImage2D)( GLcontext *ctx, GLenum target, GLint level,
+ GLenum internalFormat, GLint x, GLint y,
+ GLsizei width, GLsizei height, GLint border );
+ /* Called by glCopyTexImage1D and glCopyTexImage2D.
+ * Will not be called if any glPixelTransfer operations are enabled.
+ * Return GL_TRUE if operation completed, return GL_FALSE if core Mesa
+ * should do the job.
+ */
+
+ GLboolean (*CopyTexSubImage1D)( GLcontext *ctx, GLenum target, GLint level,
+ GLint xoffset,
+ GLint x, GLint y, GLsizei width );
+ GLboolean (*CopyTexSubImage2D)( GLcontext *ctx, GLenum target, GLint level,
+ GLint xoffset, GLint yoffset,
+ GLint x, GLint y,
+ GLsizei width, GLsizei height );
+ GLboolean (*CopyTexSubImage3D)( GLcontext *ctx, GLenum target, GLint level,
+ GLint xoffset, GLint yoffset, GLint zoffset,
+ GLint x, GLint y,
+ GLsizei width, GLsizei height );
+ /* Called by glCopyTexSubImage1/2/3D.
+ * Will not be called if any glPixelTransfer operations are enabled.
+ * Return GL_TRUE if operation completed, return GL_FALSE if core Mesa
+ * should do the job.
+ */
+
+ GLvoid *(*GetTexImage)( GLcontext *ctx, GLenum target, GLint level,
+ GLenum *formatOut, GLenum *typeOut,
+ GLboolean *freeImageOut );
+ /* Called by glGetTexImage or by core Mesa when a texture image
+ * is needed for software fallback rendering.
+ * Return the address of the texture image or NULL if failure.
+ * The image must be tightly packed (i.e. row stride = image width)
+ * Return the image's format and type in formatOut and typeOut.
+ * The format and type must be values which are accepted by glTexImage.
+ * Set the freeImageOut flag if the returned image should be deallocated
+ * with FREE() when finished.
+ * The size of the image can be deduced from the target and level.
+ * Core Mesa will perform any image format/type conversions that are needed.
+ */
+
void (*TexParameter)( GLcontext *ctx, GLenum target,
struct gl_texture_object *tObj,
GLenum pname, const GLfloat *params );