diff options
author | Brian Paul <[email protected]> | 2001-04-04 21:54:20 +0000 |
---|---|---|
committer | Brian Paul <[email protected]> | 2001-04-04 21:54:20 +0000 |
commit | 7d58f44f73be59bd3583e6dfeedf56c43f7fbd55 (patch) | |
tree | ff9f85c072c0fb669a959f12f74ca5f2b2bfc1e4 /src/mesa/main/texstore.h | |
parent | bb0830da9e35666f26bb0e5e530d18d8b9ec8e71 (diff) |
More texture image changes.
1. Added ctx->Driver.ChooseTextureFormat() function. Examines user's
internalFormat, format, type params and returns a gl_texture_format.
2. _mesa_store_teximage[123]d() calls ctx->Driver.ChooseTextureFormat(),
allocates storage and transfers the image into the desired format.
3. _mesa_transfer_teximage() now takes a gl_texture_format to describe
the destination format. Any combination of input format/type and
output gl_texture_format is accepted. Uses optimized _mesa_convert_-
texsubimage[123]d() functions when possible.
3. DRI driver's TexImage[123]D functions should be a lot simpler now.
Diffstat (limited to 'src/mesa/main/texstore.h')
-rw-r--r-- | src/mesa/main/texstore.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mesa/main/texstore.h b/src/mesa/main/texstore.h index c78a32703c8..d876df54d33 100644 --- a/src/mesa/main/texstore.h +++ b/src/mesa/main/texstore.h @@ -1,4 +1,4 @@ -/* $Id: texstore.h,v 1.5 2001/03/21 16:44:08 brianp Exp $ */ +/* $Id: texstore.h,v 1.6 2001/04/04 21:54:21 brianp Exp $ */ /* * Mesa 3-D graphics library @@ -39,7 +39,8 @@ extern void _mesa_transfer_teximage(GLcontext *ctx, GLuint dimensions, - GLenum texDestFormat, GLvoid *texDestAddr, + const struct gl_texture_format *texDestFormat, + GLvoid *texDestAddr, GLint srcWidth, GLint srcHeight, GLint srcDepth, GLint dstXoffset, GLint dstYoffset, GLint dstZoffset, GLint dstRowStride, GLint dstImageStride, |