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

texgetimage.c File Reference

#include "glheader.h"
#include "bufferobj.h"
#include "context.h"
#include "image.h"
#include "texcompress.h"
#include "texformat.h"
#include "texgetimage.h"
#include "teximage.h"
#include "texstate.h"

Functions

static INLINE GLboolean type_with_negative_values (GLenum type)
 Code for glGetTexImage() and glGetCompressedTexImage().
void _mesa_get_teximage (GLcontext *ctx, GLenum target, GLint level, GLenum format, GLenum type, GLvoid *pixels, struct gl_texture_object *texObj, struct gl_texture_image *texImage)
 This is the software fallback for Driver.GetTexImage().
void _mesa_get_compressed_teximage (GLcontext *ctx, GLenum target, GLint level, GLvoid *img, struct gl_texture_object *texObj, struct gl_texture_image *texImage)
 This is the software fallback for Driver.GetCompressedTexImage().
static GLboolean getteximage_error_check (GLcontext *ctx, GLenum target, GLint level, GLenum format, GLenum type, GLvoid *pixels)
 Do error checking for a glGetTexImage() call.
void GLAPIENTRY _mesa_GetTexImage (GLenum target, GLint level, GLenum format, GLenum type, GLvoid *pixels)
 Get texture image.
void GLAPIENTRY _mesa_GetCompressedTexImageARB (GLenum target, GLint level, GLvoid *img)


Function Documentation

void _mesa_get_compressed_teximage ( GLcontext ctx,
GLenum  target,
GLint  level,
GLvoid *  img,
struct gl_texture_object texObj,
struct gl_texture_image texImage 
)

This is the software fallback for Driver.GetCompressedTexImage().

All error checking will have been done before this routine is called.

void _mesa_get_teximage ( GLcontext ctx,
GLenum  target,
GLint  level,
GLenum  format,
GLenum  type,
GLvoid *  pixels,
struct gl_texture_object texObj,
struct gl_texture_image texImage 
)

This is the software fallback for Driver.GetTexImage().

All error checking will have been done before this routine is called.

void GLAPIENTRY _mesa_GetCompressedTexImageARB ( GLenum  target,
GLint  level,
GLvoid *  img 
)

void GLAPIENTRY _mesa_GetTexImage ( GLenum  target,
GLint  level,
GLenum  format,
GLenum  type,
GLvoid *  pixels 
)

Get texture image.

Called by glGetTexImage.

Parameters:
target texture target.
level image level.
format pixel data format for returned image.
type pixel data type for returned image.
pixels returned pixel data.

static GLboolean getteximage_error_check ( GLcontext ctx,
GLenum  target,
GLint  level,
GLenum  format,
GLenum  type,
GLvoid *  pixels 
) [static]

Do error checking for a glGetTexImage() call.

Returns:
GL_TRUE if any error, GL_FALSE if no errors.

static INLINE GLboolean type_with_negative_values ( GLenum  type  )  [static]

Code for glGetTexImage() and glGetCompressedTexImage().

Can the given type represent negative values?


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