aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/main/readpix.h
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2011-11-12 11:50:31 -0700
committerBrian Paul <[email protected]>2011-11-15 07:49:26 -0700
commitd2a23d4ded958ceb480c97a303003ea009d5fd41 (patch)
tree0f84773b84fd4cfd3858b6627cd7aa95b052a00b /src/mesa/main/readpix.h
parente0e454943cf40730b6ba311310d9878f704a4f95 (diff)
mesa: move swrast ReadPixels code into core Mesa
The swrast ReadPixels code has no dependencies on swrast since moving to Map/UnmapRenderbuffer(). We'll be able to remove s_readpix.c and remove the state tracker's glReadPixels code next. Acked-by: Eric Anholt <[email protected]>
Diffstat (limited to 'src/mesa/main/readpix.h')
-rw-r--r--src/mesa/main/readpix.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/mesa/main/readpix.h b/src/mesa/main/readpix.h
index f6bb3d6e273..6caaf3adce1 100644
--- a/src/mesa/main/readpix.h
+++ b/src/mesa/main/readpix.h
@@ -30,11 +30,20 @@
#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 );