From e4276667dafc8de0c6e64af8300fc7598437de6e Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Fri, 15 Jun 2001 14:18:46 +0000 Subject: Enable GL_ARB_texture_compression for XMesa/GLX driver. Texture compression isn't really implmented. Just updated glTexImageXD() to accept compressed internal format tokens. --- src/mesa/main/dd.h | 22 ++++++---------------- 1 file changed, 6 insertions(+), 16 deletions(-) (limited to 'src/mesa/main/dd.h') diff --git a/src/mesa/main/dd.h b/src/mesa/main/dd.h index e69ad2d740..d88e9d3055 100644 --- a/src/mesa/main/dd.h +++ b/src/mesa/main/dd.h @@ -1,4 +1,4 @@ -/* $Id: dd.h,v 1.61 2001/04/04 21:54:20 brianp Exp $ */ +/* $Id: dd.h,v 1.62 2001/06/15 14:18:46 brianp Exp $ */ /* * Mesa 3-D graphics library @@ -346,16 +346,12 @@ struct dd_function_table { * should do the job. */ - GLboolean (*IsCompressedFormat)(GLcontext *ctx, GLint internalFormat); - /* Called to tell if a format is a compressed format. - */ - void (*GetCompressedTexImage)( GLcontext *ctx, GLenum target, - GLint lod, void *image, + GLint level, void *image, const struct gl_texture_object *texObj, struct gl_texture_image *texImage ); /* Called by glGetCompressedTexImageARB. - * , , are specified by user. + * , , are specified by user. * is the source texture object. * is the source texture image. */ @@ -368,6 +364,9 @@ struct dd_function_table { * Example: if internalFormat==GL_COMPRESSED_RGB_FXT1_3DFX, return GL_RGB. */ + GLint (*CompressedTextureSize)(GLcontext *ctx, + const struct gl_texture_image *texImage); + #if 000 /* ... Note the * return value differences between this function and @@ -394,15 +393,6 @@ struct dd_function_table { * do the right thing with it. */ - GLsizei (*CompressedImageSize)(GLcontext *ctx, - GLenum internalFormat, - GLuint numDimensions, - GLuint width, - GLuint height, - GLuint depth); - /* Calculate the size of a compressed image, given the image's - * format and dimensions. - */ #endif /*** -- cgit v1.2.3