core | glapi | vbo | math | shader | swrast | swrast_setup | tnl | tnl_dd

readpix.c File Reference

#include "glheader.h"
#include "imports.h"
#include "bufferobj.h"
#include "context.h"
#include "readpix.h"
#include "framebuffer.h"
#include "image.h"
#include "state.h"

Functions

GLboolean _mesa_error_check_format_type (GLcontext *ctx, GLenum format, GLenum type, GLboolean drawing)
 Do error checking of the format/type parameters to glReadPixels and glDrawPixels.
void GLAPIENTRY _mesa_ReadPixels (GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLvoid *pixels)


Function Documentation

GLboolean _mesa_error_check_format_type ( GLcontext ctx,
GLenum  format,
GLenum  type,
GLboolean  drawing 
)

Do error checking of the format/type parameters to glReadPixels and glDrawPixels.

Parameters:
drawing if GL_TRUE do checking for DrawPixels, else do checking for ReadPixels.
Returns:
GL_TRUE if error detected, GL_FALSE if no errors

void GLAPIENTRY _mesa_ReadPixels ( GLint  x,
GLint  y,
GLsizei  width,
GLsizei  height,
GLenum  format,
GLenum  type,
GLvoid *  pixels 
)


Generated on Sun Sep 27 06:47:46 2009 for Mesa Main by  doxygen 1.5.4