From 8f04c12e0ad876baa7eb9ed379e2b00150b376e0 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Tue, 27 Apr 2004 13:39:20 +0000 Subject: Removed the old teximage code. Moved all code related to specific texture compression modes into new texcompress_s3tc.c and texcompress_fxt1.c files (but not implemented). --- src/mesa/main/texformat.h | 45 ++++++++++++++++++++++----------------------- 1 file changed, 22 insertions(+), 23 deletions(-) (limited to 'src/mesa/main/texformat.h') diff --git a/src/mesa/main/texformat.h b/src/mesa/main/texformat.h index cc26b7928a..d6cd02a16c 100644 --- a/src/mesa/main/texformat.h +++ b/src/mesa/main/texformat.h @@ -81,18 +81,6 @@ enum _format { MESA_FORMAT_YCBCR_REV, /* UorV UorV YYYY YYYY */ /*@}*/ - /** - * \name Compressed texture formats. - */ - /*@{*/ - MESA_FORMAT_RGB_FXT1, - MESA_FORMAT_RGBA_FXT1, - MESA_FORMAT_RGB_DXT1, - MESA_FORMAT_RGBA_DXT1, - MESA_FORMAT_RGBA_DXT3, - MESA_FORMAT_RGBA_DXT5, - /*@}*/ - #if 0 /** * \name Upcoming little-endian formats @@ -111,6 +99,18 @@ enum _format { /*@}*/ #endif + /** + * \name Compressed texture formats. + */ + /*@{*/ + MESA_FORMAT_RGB_FXT1, + MESA_FORMAT_RGBA_FXT1, + MESA_FORMAT_RGB_DXT1, + MESA_FORMAT_RGBA_DXT1, + MESA_FORMAT_RGBA_DXT3, + MESA_FORMAT_RGBA_DXT5, + /*@}*/ + /** * \name Generic GLchan-based formats. * @@ -159,7 +159,7 @@ enum _format { }; -/** The default formats, GLchan per component */ +/** GLchan-valued formats */ /*@{*/ extern const struct gl_texture_format _mesa_texformat_rgba; extern const struct gl_texture_format _mesa_texformat_rgb; @@ -192,7 +192,7 @@ extern const struct gl_texture_format _mesa_texformat_intensity_float32; extern const struct gl_texture_format _mesa_texformat_intensity_float16; /*@}*/ -/** \name The hardware-friendly formats */ +/** \name Assorted hardware-friendly formats */ /*@{*/ extern const struct gl_texture_format _mesa_texformat_rgba8888; extern const struct gl_texture_format _mesa_texformat_argb8888; @@ -206,8 +206,16 @@ extern const struct gl_texture_format _mesa_texformat_a8; extern const struct gl_texture_format _mesa_texformat_l8; extern const struct gl_texture_format _mesa_texformat_i8; extern const struct gl_texture_format _mesa_texformat_ci8; +/*@}*/ + +/** \name YCbCr formats */ +/*@{*/ extern const struct gl_texture_format _mesa_texformat_ycbcr; extern const struct gl_texture_format _mesa_texformat_ycbcr_rev; +/*@}*/ + +/** \name Compressed formats */ +/*@{*/ extern const struct gl_texture_format _mesa_texformat_rgb_fxt1; extern const struct gl_texture_format _mesa_texformat_rgba_fxt1; extern const struct gl_texture_format _mesa_texformat_rgb_dxt1; @@ -222,17 +230,8 @@ extern const struct gl_texture_format _mesa_null_texformat; /*@}*/ -#if !NEWTEXSTORE -extern GLboolean -_mesa_is_hardware_tex_format( const struct gl_texture_format *format ); -#endif - extern const struct gl_texture_format * _mesa_choose_tex_format( GLcontext *ctx, GLint internalFormat, GLenum format, GLenum type ); -extern GLint -_mesa_base_compressed_texformat(GLcontext *ctx, GLint intFormat); - - #endif -- cgit v1.2.3