diff options
author | Brian Paul <[email protected]> | 2000-03-03 15:38:57 +0000 |
---|---|---|
committer | Brian Paul <[email protected]> | 2000-03-03 15:38:57 +0000 |
commit | c232ecbfdf9e098666853df2013e1f2c4c22cf53 (patch) | |
tree | 17a079dc664676ac23a32ab548fe581e38e31bcc /src/mesa | |
parent | 54ec0cbfa9b42a0f03c6a5fe945cac94b37e4885 (diff) |
added device driver ReadPixels and CopyPixels functions
Diffstat (limited to 'src/mesa')
-rw-r--r-- | src/mesa/main/dd.h | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/src/mesa/main/dd.h b/src/mesa/main/dd.h index 5459787fead..9a10fd0d4bc 100644 --- a/src/mesa/main/dd.h +++ b/src/mesa/main/dd.h @@ -1,4 +1,4 @@ -/* $Id: dd.h,v 1.12 2000/02/27 20:38:15 keithw Exp $ */ +/* $Id: dd.h,v 1.13 2000/03/03 15:38:57 brianp Exp $ */ /* * Mesa 3-D graphics library @@ -478,6 +478,25 @@ struct dd_function_table { * must do the job. */ + GLboolean (*ReadPixels)( GLcontext *ctx, + GLint x, GLint y, GLsizei width, GLsizei height, + GLenum format, GLenum type, + const struct gl_pixelstore_attrib *unpack, + GLvoid *dest ); + /* Called by glReadPixels. + * Return GL_TRUE if operation completed, else return GL_FALSE. + * This function must respect all glPixelTransfer settings. + */ + + GLboolean (*CopyPixels)( GLcontext *ctx, + GLint srcx, GLint srcy, + GLsizei width, GLsizei height, + GLint dstx, GLint dsty, GLenum type ); + /* Do a glCopyPixels. Return GL_TRUE if operation completed, else + * return GL_FALSE. This function must respect all rasterization + * state, glPixelTransfer, glPixelZoom, etc. + */ + GLboolean (*Bitmap)( GLcontext *ctx, GLint x, GLint y, GLsizei width, GLsizei height, const struct gl_pixelstore_attrib *unpack, |