mesa: add compressed_fetch_func typedef

This is a first step in removing the swrast-related code in core
Mesa's texture compression files.
This commit is contained in:
Brian Paul 2012-12-08 15:19:44 -07:00
parent 90b7797a1d
commit 2037a06da9
1 changed files with 9 additions and 0 deletions

View File

@ -48,6 +48,15 @@ _mesa_compressed_image_address(GLint col, GLint row, GLint img,
gl_format mesaFormat,
GLsizei width, const GLubyte *image);
/** A function to fetch one texel from a compressed texture */
typedef void (*compressed_fetch_func)(const GLubyte *map,
const GLuint imageOffsets[],
GLint rowStride,
GLint i, GLint j, GLint k,
GLfloat *texel);
extern void
_mesa_decompress_image(gl_format format, GLuint width, GLuint height,
const GLubyte *src, GLint srcRowStride,