diff options
author | Brian Paul <[email protected]> | 2004-12-12 19:03:16 +0000 |
---|---|---|
committer | Brian Paul <[email protected]> | 2004-12-12 19:03:16 +0000 |
commit | 68d293b03535ca50daf70650b32db780f1718a3b (patch) | |
tree | 61dabbf4140beda7a3c64b01356c0b92167ee060 /src/mesa/main/dd.h | |
parent | 5aa1a111a443e51e27e32037a785c49388346495 (diff) |
Added driver hooks for GetTexImage() and GetCompressedTexImage().
Added fallback _mesa_get_[compressed]_teximage() routines to texstore.c
Diffstat (limited to 'src/mesa/main/dd.h')
-rw-r--r-- | src/mesa/main/dd.h | 24 |
1 files changed, 20 insertions, 4 deletions
diff --git a/src/mesa/main/dd.h b/src/mesa/main/dd.h index 23ec4587aaf..2b1131bc414 100644 --- a/src/mesa/main/dd.h +++ b/src/mesa/main/dd.h @@ -157,10 +157,9 @@ struct dd_function_table { * This function must respect all rasterization state, glPixelTransfer(), * glPixelZoom(), etc. */ - void (*CopyPixels)( GLcontext *ctx, - GLint srcx, GLint srcy, - GLsizei width, GLsizei height, - GLint dstx, GLint dsty, GLenum type ); + void (*CopyPixels)( GLcontext *ctx, GLint srcx, GLint srcy, + GLsizei width, GLsizei height, + GLint dstx, GLint dsty, GLenum type ); /** * This is called by glBitmap(). @@ -298,6 +297,14 @@ struct dd_function_table { struct gl_texture_image *texImage ); /** + * Called by glGetTexImage(). + */ + void (*GetTexImage)( GLcontext *ctx, GLenum target, GLint level, + GLenum format, GLenum type, GLvoid *pixels, + const struct gl_texture_object *texObj, + const struct gl_texture_image *texImage ); + + /** * Called by glCopyTexImage1D(). * * Drivers should use a fallback routine from texstore.c if needed. @@ -454,6 +461,15 @@ struct dd_function_table { struct gl_texture_object *texObj, struct gl_texture_image *texImage); + + /** + * Called by glGetCompressedTexImage. + */ + void (*GetCompressedTexImage)(GLcontext *ctx, GLenum target, GLint level, + GLvoid *img, + const struct gl_texture_object *texObj, + const struct gl_texture_image *texImage); + /** * Called to query number of bytes of storage needed to store the * specified compressed texture. |