diff options
author | Brian Paul <[email protected]> | 2006-08-03 03:20:52 +0000 |
---|---|---|
committer | Brian Paul <[email protected]> | 2006-08-03 03:20:52 +0000 |
commit | 8d214bc8044e5027e3fa9302b259d0c557270b00 (patch) | |
tree | 442cd52e113a49bb48a1d93994322567cff149a4 /src/mesa/main/texformat.h | |
parent | 35fe7cfae4903fbea8c0e8318d43bba99944740c (diff) |
Initial work for GL_EXT_texture_sRGB.
Diffstat (limited to 'src/mesa/main/texformat.h')
-rw-r--r-- | src/mesa/main/texformat.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/src/mesa/main/texformat.h b/src/mesa/main/texformat.h index b7e5fc27dcb..2aae5c17219 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; |