diff options
author | marha <marha@users.sourceforge.net> | 2011-08-30 08:04:44 +0200 |
---|---|---|
committer | marha <marha@users.sourceforge.net> | 2011-08-30 08:08:15 +0200 |
commit | 82ce0534a7bc89f1ed93b4b952b30ceb3d94210d (patch) | |
tree | a2b73894a436b1158cf0e8e2f2ea946478529d12 /mesalib/src/mesa/main/dd.h | |
parent | 01df5d59e56a1b060568f8cad2e89f7eea22fc70 (diff) | |
download | vcxsrv-82ce0534a7bc89f1ed93b4b952b30ceb3d94210d.tar.gz vcxsrv-82ce0534a7bc89f1ed93b4b952b30ceb3d94210d.tar.bz2 vcxsrv-82ce0534a7bc89f1ed93b4b952b30ceb3d94210d.zip |
mesa git update 30 aug 2011
Diffstat (limited to 'mesalib/src/mesa/main/dd.h')
-rw-r--r-- | mesalib/src/mesa/main/dd.h | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/mesalib/src/mesa/main/dd.h b/mesalib/src/mesa/main/dd.h index fcf40ecf1..d918b1e31 100644 --- a/mesalib/src/mesa/main/dd.h +++ b/mesalib/src/mesa/main/dd.h @@ -479,7 +479,26 @@ struct dd_function_table { /** * Called to free tImage->Data. */ - void (*FreeTexImageData)( struct gl_context *ctx, struct gl_texture_image *tImage ); + void (*FreeTextureImageBuffer)( struct gl_context *ctx, struct gl_texture_image *tImage ); + + /** Map a slice of a texture image into user space. + * \param texImage the texture image + * \param slice the 3D image slice or array texture slice + * \param x, y, w, h region of interest + * \param mode bitmask of GL_MAP_READ_BIT, GL_MAP_WRITE_BIT + * \param mapOut returns start of mapping of region of interest + * \param rowStrideOut returns row stride (in bytes) + */ + void (*MapTextureImage)(struct gl_context *ctx, + struct gl_texture_image *texImage, + GLuint slice, + GLuint x, GLuint y, GLuint w, GLuint h, + GLbitfield mode, + GLubyte **mapOut, GLint *rowStrideOut); + + void (*UnmapTextureImage)(struct gl_context *ctx, + struct gl_texture_image *texImage, + GLuint slice); /** Map texture image data into user space */ void (*MapTexture)( struct gl_context *ctx, struct gl_texture_object *tObj ); |