X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=src%2Fmesa%2Fmain%2Freadpix.h;h=5a5f73f52950b099712dab8a6e7a667b501e9b12;hb=a83c1d61c2919485b1e8ad33fcf658c85b67ba3a;hp=fd25e703e04f372e01cc07dd64a75ac65c61454c;hpb=0f68236a2487dbeb0396b996debcda595b0b54a1;p=mesa.git diff --git a/src/mesa/main/readpix.h b/src/mesa/main/readpix.h index fd25e703e04..5a5f73f5295 100644 --- a/src/mesa/main/readpix.h +++ b/src/mesa/main/readpix.h @@ -30,14 +30,23 @@ #include "glheader.h" struct gl_context; +struct gl_pixelstore_attrib; -extern GLboolean -_mesa_error_check_format_type(struct gl_context *ctx, GLenum format, GLenum type, - GLboolean drawing); + +extern void +_mesa_readpixels(struct gl_context *ctx, + GLint x, GLint y, GLsizei width, GLsizei height, + GLenum format, GLenum type, + const struct gl_pixelstore_attrib *packing, + GLvoid *pixels); extern void GLAPIENTRY _mesa_ReadPixels( GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLvoid *pixels ); +extern void GLAPIENTRY +_mesa_ReadnPixelsARB( GLint x, GLint y, GLsizei width, GLsizei height, + GLenum format, GLenum type, GLsizei bufSize, + GLvoid *pixels ); #endif