From 8d214bc8044e5027e3fa9302b259d0c557270b00 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Thu, 3 Aug 2006 03:20:52 +0000 Subject: Initial work for GL_EXT_texture_sRGB. --- src/mesa/main/texformat.h | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) (limited to 'src/mesa/main/texformat.h') diff --git a/src/mesa/main/texformat.h b/src/mesa/main/texformat.h index b7e5fc27dc..2aae5c1721 100644 --- a/src/mesa/main/texformat.h +++ b/src/mesa/main/texformat.h @@ -88,6 +88,18 @@ enum _format { MESA_FORMAT_Z32, /*ZZZZ ZZZZ ZZZZ ZZZZ ZZZZ ZZZZ ZZZZ ZZZZ */ /*@}*/ +#if FEATURE_EXT_texture_sRGB + /** + * \name 8-bit/channel sRGB formats + */ + /*@{*/ + MESA_FORMAT_SRGB8, + MESA_FORMAT_SRGBA8, + MESA_FORMAT_SL8, + MESA_FORMAT_SLA8, + /*@}*/ +#endif + /** * \name Compressed texture formats. */ @@ -149,6 +161,16 @@ extern const struct gl_texture_format _mesa_texformat_luminance_alpha; extern const struct gl_texture_format _mesa_texformat_intensity; /*@}*/ +#if FEATURE_EXT_texture_sRGB +/** sRGB (nonlinear) formats */ +/*@{*/ +extern const struct gl_texture_format _mesa_texformat_srgb8; +extern const struct gl_texture_format _mesa_texformat_srgba8; +extern const struct gl_texture_format _mesa_texformat_s8; +extern const struct gl_texture_format _mesa_texformat_sla8; +/*@}*/ +#endif + /** Floating point texture formats */ /*@{*/ extern const struct gl_texture_format _mesa_texformat_rgba_float32; -- cgit v1.2.3