Home | Info | Community | Development | myReactOS | Contact Us
ReactOS Development > Doxygentexformat.h
Go to the documentation of this file.
00001 /* 00002 * Mesa 3-D graphics library 00003 * Version: 6.5.1 00004 * 00005 * Copyright (C) 1999-2006 Brian Paul All Rights Reserved. 00006 * 00007 * Permission is hereby granted, free of charge, to any person obtaining a 00008 * copy of this software and associated documentation files (the "Software"), 00009 * to deal in the Software without restriction, including without limitation 00010 * the rights to use, copy, modify, merge, publish, distribute, sublicense, 00011 * and/or sell copies of the Software, and to permit persons to whom the 00012 * Software is furnished to do so, subject to the following conditions: 00013 * 00014 * The above copyright notice and this permission notice shall be included 00015 * in all copies or substantial portions of the Software. 00016 * 00017 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 00018 * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 00019 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 00020 * BRIAN PAUL BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN 00021 * AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 00022 * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 00023 */ 00024 00025 00034 #ifndef TEXFORMAT_H 00035 #define TEXFORMAT_H 00036 00037 00038 #include "mtypes.h" 00039 00040 00048 enum _format { 00063 /* msb <------ TEXEL BITS -----------> lsb */ 00064 /* ---- ---- ---- ---- ---- ---- ---- ---- */ 00065 MESA_FORMAT_RGBA8888, /* RRRR RRRR GGGG GGGG BBBB BBBB AAAA AAAA */ 00066 MESA_FORMAT_RGBA8888_REV, /* AAAA AAAA BBBB BBBB GGGG GGGG RRRR RRRR */ 00067 MESA_FORMAT_ARGB8888, /* AAAA AAAA RRRR RRRR GGGG GGGG BBBB BBBB */ 00068 MESA_FORMAT_ARGB8888_REV, /* BBBB BBBB GGGG GGGG RRRR RRRR AAAA AAAA */ 00069 MESA_FORMAT_RGB888, /* RRRR RRRR GGGG GGGG BBBB BBBB */ 00070 MESA_FORMAT_BGR888, /* BBBB BBBB GGGG GGGG RRRR RRRR */ 00071 MESA_FORMAT_RGB565, /* RRRR RGGG GGGB BBBB */ 00072 MESA_FORMAT_RGB565_REV, /* GGGB BBBB RRRR RGGG */ 00073 MESA_FORMAT_RGBA4444, /* RRRR GGGG BBBB AAAA */ 00074 MESA_FORMAT_ARGB4444, /* AAAA RRRR GGGG BBBB */ 00075 MESA_FORMAT_ARGB4444_REV, /* GGGG BBBB AAAA RRRR */ 00076 MESA_FORMAT_RGBA5551, /* RRRR RGGG GGBB BBBA */ 00077 MESA_FORMAT_ARGB1555, /* ARRR RRGG GGGB BBBB */ 00078 MESA_FORMAT_ARGB1555_REV, /* GGGB BBBB ARRR RRGG */ 00079 MESA_FORMAT_AL88, /* AAAA AAAA LLLL LLLL */ 00080 MESA_FORMAT_AL88_REV, /* LLLL LLLL AAAA AAAA */ 00081 MESA_FORMAT_RGB332, /* RRRG GGBB */ 00082 MESA_FORMAT_A8, /* AAAA AAAA */ 00083 MESA_FORMAT_L8, /* LLLL LLLL */ 00084 MESA_FORMAT_I8, /* IIII IIII */ 00085 MESA_FORMAT_CI8, /* CCCC CCCC */ 00086 MESA_FORMAT_YCBCR, /* YYYY YYYY UorV UorV */ 00087 MESA_FORMAT_YCBCR_REV, /* UorV UorV YYYY YYYY */ 00088 MESA_FORMAT_Z24_S8, /* ZZZZ ZZZZ ZZZZ ZZZZ ZZZZ ZZZZ SSSS SSSS */ 00089 MESA_FORMAT_S8_Z24, /* SSSS SSSS ZZZZ ZZZZ ZZZZ ZZZZ ZZZZ ZZZZ */ 00090 MESA_FORMAT_Z16, /* ZZZZ ZZZZ ZZZZ ZZZZ */ 00091 MESA_FORMAT_Z32, /* ZZZZ ZZZZ ZZZZ ZZZZ ZZZZ ZZZZ ZZZZ ZZZZ */ 00094 #if FEATURE_EXT_texture_sRGB 00095 00099 MESA_FORMAT_SRGB8, 00100 MESA_FORMAT_SRGBA8, 00101 MESA_FORMAT_SL8, 00102 MESA_FORMAT_SLA8, 00103 MESA_FORMAT_SRGB_DXT1, 00105 #endif 00106 00111 MESA_FORMAT_RGB_FXT1, 00112 MESA_FORMAT_RGBA_FXT1, 00113 MESA_FORMAT_RGB_DXT1, 00114 MESA_FORMAT_RGBA_DXT1, 00115 MESA_FORMAT_RGBA_DXT3, 00116 MESA_FORMAT_RGBA_DXT5, 00130 MESA_FORMAT_RGBA, 00131 MESA_FORMAT_RGB, 00132 MESA_FORMAT_ALPHA, 00133 MESA_FORMAT_LUMINANCE, 00134 MESA_FORMAT_LUMINANCE_ALPHA, 00135 MESA_FORMAT_INTENSITY, 00142 MESA_FORMAT_RGBA_FLOAT32, 00143 MESA_FORMAT_RGBA_FLOAT16, 00144 MESA_FORMAT_RGB_FLOAT32, 00145 MESA_FORMAT_RGB_FLOAT16, 00146 MESA_FORMAT_ALPHA_FLOAT32, 00147 MESA_FORMAT_ALPHA_FLOAT16, 00148 MESA_FORMAT_LUMINANCE_FLOAT32, 00149 MESA_FORMAT_LUMINANCE_FLOAT16, 00150 MESA_FORMAT_LUMINANCE_ALPHA_FLOAT32, 00151 MESA_FORMAT_LUMINANCE_ALPHA_FLOAT16, 00152 MESA_FORMAT_INTENSITY_FLOAT32, 00153 MESA_FORMAT_INTENSITY_FLOAT16 00155 }; 00156 00157 00160 extern const struct gl_texture_format _mesa_texformat_rgba; 00161 extern const struct gl_texture_format _mesa_texformat_rgb; 00162 extern const struct gl_texture_format _mesa_texformat_alpha; 00163 extern const struct gl_texture_format _mesa_texformat_luminance; 00164 extern const struct gl_texture_format _mesa_texformat_luminance_alpha; 00165 extern const struct gl_texture_format _mesa_texformat_intensity; 00168 #if FEATURE_EXT_texture_sRGB 00169 00171 extern const struct gl_texture_format _mesa_texformat_srgb8; 00172 extern const struct gl_texture_format _mesa_texformat_srgba8; 00173 extern const struct gl_texture_format _mesa_texformat_sl8; 00174 extern const struct gl_texture_format _mesa_texformat_sla8; 00175 extern const struct gl_texture_format _mesa_texformat_srgb_dxt1; 00177 #endif 00178 00181 extern const struct gl_texture_format _mesa_texformat_rgba_float32; 00182 extern const struct gl_texture_format _mesa_texformat_rgba_float16; 00183 extern const struct gl_texture_format _mesa_texformat_rgb_float32; 00184 extern const struct gl_texture_format _mesa_texformat_rgb_float16; 00185 extern const struct gl_texture_format _mesa_texformat_alpha_float32; 00186 extern const struct gl_texture_format _mesa_texformat_alpha_float16; 00187 extern const struct gl_texture_format _mesa_texformat_luminance_float32; 00188 extern const struct gl_texture_format _mesa_texformat_luminance_float16; 00189 extern const struct gl_texture_format _mesa_texformat_luminance_alpha_float32; 00190 extern const struct gl_texture_format _mesa_texformat_luminance_alpha_float16; 00191 extern const struct gl_texture_format _mesa_texformat_intensity_float32; 00192 extern const struct gl_texture_format _mesa_texformat_intensity_float16; 00197 extern const struct gl_texture_format _mesa_texformat_rgba8888; 00198 extern const struct gl_texture_format _mesa_texformat_rgba8888_rev; 00199 extern const struct gl_texture_format _mesa_texformat_argb8888; 00200 extern const struct gl_texture_format _mesa_texformat_argb8888_rev; 00201 extern const struct gl_texture_format _mesa_texformat_rgb888; 00202 extern const struct gl_texture_format _mesa_texformat_bgr888; 00203 extern const struct gl_texture_format _mesa_texformat_rgb565; 00204 extern const struct gl_texture_format _mesa_texformat_rgb565_rev; 00205 extern const struct gl_texture_format _mesa_texformat_rgba4444; 00206 extern const struct gl_texture_format _mesa_texformat_argb4444; 00207 extern const struct gl_texture_format _mesa_texformat_argb4444_rev; 00208 extern const struct gl_texture_format _mesa_texformat_argb1555; 00209 extern const struct gl_texture_format _mesa_texformat_argb1555_rev; 00210 extern const struct gl_texture_format _mesa_texformat_rgba5551; 00211 extern const struct gl_texture_format _mesa_texformat_al88; 00212 extern const struct gl_texture_format _mesa_texformat_al88_rev; 00213 extern const struct gl_texture_format _mesa_texformat_rgb332; 00214 extern const struct gl_texture_format _mesa_texformat_a8; 00215 extern const struct gl_texture_format _mesa_texformat_l8; 00216 extern const struct gl_texture_format _mesa_texformat_i8; 00217 extern const struct gl_texture_format _mesa_texformat_ci8; 00218 extern const struct gl_texture_format _mesa_texformat_z24_s8; 00219 extern const struct gl_texture_format _mesa_texformat_s8_z24; 00220 extern const struct gl_texture_format _mesa_texformat_z16; 00221 extern const struct gl_texture_format _mesa_texformat_z32; 00226 extern const struct gl_texture_format _mesa_texformat_ycbcr; 00227 extern const struct gl_texture_format _mesa_texformat_ycbcr_rev; 00232 extern const struct gl_texture_format _mesa_texformat_rgb_fxt1; 00233 extern const struct gl_texture_format _mesa_texformat_rgba_fxt1; 00234 extern const struct gl_texture_format _mesa_texformat_rgb_dxt1; 00235 extern const struct gl_texture_format _mesa_texformat_rgba_dxt1; 00236 extern const struct gl_texture_format _mesa_texformat_rgba_dxt3; 00237 extern const struct gl_texture_format _mesa_texformat_rgba_dxt5; 00242 extern const struct gl_texture_format _mesa_null_texformat; 00246 extern const struct gl_texture_format * 00247 _mesa_choose_tex_format( GLcontext *ctx, GLint internalFormat, 00248 GLenum format, GLenum type ); 00249 00250 00251 extern void 00252 _mesa_format_to_type_and_comps(const struct gl_texture_format *format, 00253 GLenum *datatype, GLuint *comps); 00254 00255 00256 #endif Generated on Thu May 24 2012 04:20:43 for ReactOS by
1.7.6.1
|