⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 texformat.c

📁 winNT技术操作系统,国外开放的原代码和LIUX一样
💻 C
📖 第 1 页 / 共 4 页
字号:
   GL_RGB,				/* BaseFormat */
   GL_UNSIGNED_NORMALIZED_ARB,		/* DataType */
   8,					/* RedBits */
   8,					/* GreenBits */
   8,					/* BlueBits */
   0,					/* AlphaBits */
   0,					/* LuminanceBits */
   0,					/* IntensityBits */
   0,					/* IndexBits */
   0,					/* DepthBits */
   3,					/* TexelBytes */
   _mesa_texstore_rgb888,		/* StoreTexImageFunc */
   fetch_texel_1d_rgb888,		/* FetchTexel1D */
   fetch_texel_2d_rgb888,		/* FetchTexel2D */
   fetch_texel_3d_rgb888,		/* FetchTexel3D */
   fetch_texel_1d_f_rgb888,		/* FetchTexel1Df */
   fetch_texel_2d_f_rgb888,		/* FetchTexel2Df */
   fetch_texel_3d_f_rgb888,		/* FetchTexel3Df */
   store_texel_rgb888			/* StoreTexel */
};

const struct gl_texture_format _mesa_texformat_bgr888 = {
   MESA_FORMAT_BGR888,			/* MesaFormat */
   GL_RGB,				/* BaseFormat */
   GL_UNSIGNED_NORMALIZED_ARB,		/* DataType */
   8,					/* RedBits */
   8,					/* GreenBits */
   8,					/* BlueBits */
   0,					/* AlphaBits */
   0,					/* LuminanceBits */
   0,					/* IntensityBits */
   0,					/* IndexBits */
   0,					/* DepthBits */
   3,					/* TexelBytes */
   _mesa_texstore_bgr888,		/* StoreTexImageFunc */
   fetch_texel_1d_bgr888,		/* FetchTexel1D */
   fetch_texel_2d_bgr888,		/* FetchTexel2D */
   fetch_texel_3d_bgr888,		/* FetchTexel3D */
   fetch_texel_1d_f_bgr888,		/* FetchTexel1Df */
   fetch_texel_2d_f_bgr888,		/* FetchTexel2Df */
   fetch_texel_3d_f_bgr888,		/* FetchTexel3Df */
   store_texel_bgr888			/* StoreTexel */
};

const struct gl_texture_format _mesa_texformat_rgb565 = {
   MESA_FORMAT_RGB565,			/* MesaFormat */
   GL_RGB,				/* BaseFormat */
   GL_UNSIGNED_NORMALIZED_ARB,		/* DataType */
   5,					/* RedBits */
   6,					/* GreenBits */
   5,					/* BlueBits */
   0,					/* AlphaBits */
   0,					/* LuminanceBits */
   0,					/* IntensityBits */
   0,					/* IndexBits */
   0,					/* DepthBits */
   2,					/* TexelBytes */
   _mesa_texstore_rgb565,		/* StoreTexImageFunc */
   fetch_texel_1d_rgb565,		/* FetchTexel1D */
   fetch_texel_2d_rgb565,		/* FetchTexel2D */
   fetch_texel_3d_rgb565,		/* FetchTexel3D */
   fetch_texel_1d_f_rgb565,		/* FetchTexel1Df */
   fetch_texel_2d_f_rgb565,		/* FetchTexel2Df */
   fetch_texel_3d_f_rgb565,		/* FetchTexel3Df */
   store_texel_rgb565			/* StoreTexel */
};

const struct gl_texture_format _mesa_texformat_rgb565_rev = {
   MESA_FORMAT_RGB565_REV,		/* MesaFormat */
   GL_RGB,				/* BaseFormat */
   GL_UNSIGNED_NORMALIZED_ARB,		/* DataType */
   5,					/* RedBits */
   6,					/* GreenBits */
   5,					/* BlueBits */
   0,					/* AlphaBits */
   0,					/* LuminanceBits */
   0,					/* IntensityBits */
   0,					/* IndexBits */
   0,					/* DepthBits */
   2,					/* TexelBytes */
   _mesa_texstore_rgb565,		/* StoreTexImageFunc */
   fetch_texel_1d_rgb565_rev,		/* FetchTexel1D */
   fetch_texel_2d_rgb565_rev,		/* FetchTexel2D */
   fetch_texel_3d_rgb565_rev,		/* FetchTexel3D */
   fetch_texel_1d_f_rgb565_rev,		/* FetchTexel1Df */
   fetch_texel_2d_f_rgb565_rev,		/* FetchTexel2Df */
   fetch_texel_3d_f_rgb565_rev,		/* FetchTexel3Df */
   store_texel_rgb565_rev		/* StoreTexel */
};

const struct gl_texture_format _mesa_texformat_argb4444 = {
   MESA_FORMAT_ARGB4444,		/* MesaFormat */
   GL_RGBA,				/* BaseFormat */
   GL_UNSIGNED_NORMALIZED_ARB,		/* DataType */
   4,					/* RedBits */
   4,					/* GreenBits */
   4,					/* BlueBits */
   4,					/* AlphaBits */
   0,					/* LuminanceBits */
   0,					/* IntensityBits */
   0,					/* IndexBits */
   0,					/* DepthBits */
   2,					/* TexelBytes */
   _mesa_texstore_argb4444,		/* StoreTexImageFunc */
   fetch_texel_1d_argb4444,		/* FetchTexel1D */
   fetch_texel_2d_argb4444,		/* FetchTexel2D */
   fetch_texel_3d_argb4444,		/* FetchTexel3D */
   fetch_texel_1d_f_argb4444,		/* FetchTexel1Df */
   fetch_texel_2d_f_argb4444,		/* FetchTexel2Df */
   fetch_texel_3d_f_argb4444,		/* FetchTexel3Df */
   store_texel_argb4444			/* StoreTexel */
};

const struct gl_texture_format _mesa_texformat_argb4444_rev = {
   MESA_FORMAT_ARGB4444_REV,		/* MesaFormat */
   GL_RGBA,				/* BaseFormat */
   GL_UNSIGNED_NORMALIZED_ARB,		/* DataType */
   4,					/* RedBits */
   4,					/* GreenBits */
   4,					/* BlueBits */
   4,					/* AlphaBits */
   0,					/* LuminanceBits */
   0,					/* IntensityBits */
   0,					/* IndexBits */
   0,					/* DepthBits */
   2,					/* TexelBytes */
   _mesa_texstore_argb4444,		/* StoreTexImageFunc */
   fetch_texel_1d_argb4444_rev,		/* FetchTexel1D */
   fetch_texel_2d_argb4444_rev,		/* FetchTexel2D */
   fetch_texel_3d_argb4444_rev,		/* FetchTexel3D */
   fetch_texel_1d_f_argb4444_rev,	/* FetchTexel1Df */
   fetch_texel_2d_f_argb4444_rev,	/* FetchTexel2Df */
   fetch_texel_3d_f_argb4444_rev,	/* FetchTexel3Df */
   store_texel_argb4444_rev		/* StoreTexel */
};

const struct gl_texture_format _mesa_texformat_argb1555 = {
   MESA_FORMAT_ARGB1555,		/* MesaFormat */
   GL_RGBA,				/* BaseFormat */
   GL_UNSIGNED_NORMALIZED_ARB,		/* DataType */
   5,					/* RedBits */
   5,					/* GreenBits */
   5,					/* BlueBits */
   1,					/* AlphaBits */
   0,					/* LuminanceBits */
   0,					/* IntensityBits */
   0,					/* IndexBits */
   0,					/* DepthBits */
   2,					/* TexelBytes */
   _mesa_texstore_argb1555,		/* StoreTexImageFunc */
   fetch_texel_1d_argb1555,		/* FetchTexel1D */
   fetch_texel_2d_argb1555,		/* FetchTexel2D */
   fetch_texel_3d_argb1555,		/* FetchTexel3D */
   fetch_texel_1d_f_argb1555,		/* FetchTexel1Df */
   fetch_texel_2d_f_argb1555,		/* FetchTexel2Df */
   fetch_texel_3d_f_argb1555,		/* FetchTexel3Df */
   store_texel_argb1555			/* StoreTexel */
};

const struct gl_texture_format _mesa_texformat_argb1555_rev = {
   MESA_FORMAT_ARGB1555_REV,		/* MesaFormat */
   GL_RGBA,				/* BaseFormat */
   GL_UNSIGNED_NORMALIZED_ARB,		/* DataType */
   5,					/* RedBits */
   5,					/* GreenBits */
   5,					/* BlueBits */
   1,					/* AlphaBits */
   0,					/* LuminanceBits */
   0,					/* IntensityBits */
   0,					/* IndexBits */
   0,					/* DepthBits */
   2,					/* TexelBytes */
   _mesa_texstore_argb1555,		/* StoreTexImageFunc */
   fetch_texel_1d_argb1555_rev,		/* FetchTexel1D */
   fetch_texel_2d_argb1555_rev,		/* FetchTexel2D */
   fetch_texel_3d_argb1555_rev,		/* FetchTexel3D */
   fetch_texel_1d_f_argb1555_rev,	/* FetchTexel1Df */
   fetch_texel_2d_f_argb1555_rev,	/* FetchTexel2Df */
   fetch_texel_3d_f_argb1555_rev,	/* FetchTexel3Df */
   store_texel_argb1555_rev		/* StoreTexel */
};

const struct gl_texture_format _mesa_texformat_al88 = {
   MESA_FORMAT_AL88,			/* MesaFormat */
   GL_LUMINANCE_ALPHA,			/* BaseFormat */
   GL_UNSIGNED_NORMALIZED_ARB,		/* DataType */
   0,					/* RedBits */
   0,					/* GreenBits */
   0,					/* BlueBits */
   8,					/* AlphaBits */
   8,					/* LuminanceBits */
   0,					/* IntensityBits */
   0,					/* IndexBits */
   0,					/* DepthBits */
   2,					/* TexelBytes */
   _mesa_texstore_al88,			/* StoreTexImageFunc */
   fetch_texel_1d_al88,			/* FetchTexel1D */
   fetch_texel_2d_al88,			/* FetchTexel2D */
   fetch_texel_3d_al88,			/* FetchTexel3D */
   fetch_texel_1d_f_al88,		/* FetchTexel1Df */
   fetch_texel_2d_f_al88,		/* FetchTexel2Df */
   fetch_texel_3d_f_al88,		/* FetchTexel3Df */
   store_texel_al88			/* StoreTexel */
};

const struct gl_texture_format _mesa_texformat_al88_rev = {
   MESA_FORMAT_AL88_REV,		/* MesaFormat */
   GL_LUMINANCE_ALPHA,			/* BaseFormat */
   GL_UNSIGNED_NORMALIZED_ARB,		/* DataType */
   0,					/* RedBits */
   0,					/* GreenBits */
   0,					/* BlueBits */
   8,					/* AlphaBits */
   8,					/* LuminanceBits */
   0,					/* IntensityBits */
   0,					/* IndexBits */
   0,					/* DepthBits */
   2,					/* TexelBytes */
   _mesa_texstore_al88,			/* StoreTexImageFunc */
   fetch_texel_1d_al88_rev,		/* FetchTexel1D */
   fetch_texel_2d_al88_rev,		/* FetchTexel2D */
   fetch_texel_3d_al88_rev,		/* FetchTexel3D */
   fetch_texel_1d_f_al88_rev,		/* FetchTexel1Df */
   fetch_texel_2d_f_al88_rev,		/* FetchTexel2Df */
   fetch_texel_3d_f_al88_rev,		/* FetchTexel3Df */
   store_texel_al88_rev			/* StoreTexel */
};

const struct gl_texture_format _mesa_texformat_rgb332 = {
   MESA_FORMAT_RGB332,			/* MesaFormat */
   GL_RGB,				/* BaseFormat */
   GL_UNSIGNED_NORMALIZED_ARB,		/* DataType */
   3,					/* RedBits */
   3,					/* GreenBits */
   2,					/* BlueBits */
   0,					/* AlphaBits */
   0,					/* LuminanceBits */
   0,					/* IntensityBits */
   0,					/* IndexBits */
   0,					/* DepthBits */
   1,					/* TexelBytes */
   _mesa_texstore_rgb332,		/* StoreTexImageFunc */
   fetch_texel_1d_rgb332,		/* FetchTexel1D */
   fetch_texel_2d_rgb332,		/* FetchTexel2D */
   fetch_texel_3d_rgb332,		/* FetchTexel3D */
   fetch_texel_1d_f_rgb332,		/* FetchTexel1Df */
   fetch_texel_2d_f_rgb332,		/* FetchTexel2Df */
   fetch_texel_3d_f_rgb332,		/* FetchTexel3Df */
   store_texel_rgb332			/* StoreTexel */
};

const struct gl_texture_format _mesa_texformat_a8 = {
   MESA_FORMAT_A8,			/* MesaFormat */
   GL_ALPHA,				/* BaseFormat */
   GL_UNSIGNED_NORMALIZED_ARB,		/* DataType */
   0,					/* RedBits */
   0,					/* GreenBits */
   0,					/* BlueBits */
   8,					/* AlphaBits */
   0,					/* LuminanceBits */
   0,					/* IntensityBits */
   0,					/* IndexBits */
   0,					/* DepthBits */
   1,					/* TexelBytes */
   _mesa_texstore_a8,			/* StoreTexImageFunc */
   fetch_texel_1d_a8,			/* FetchTexel1D */
   fetch_texel_2d_a8,			/* FetchTexel2D */
   fetch_texel_3d_a8,			/* FetchTexel3D */
   fetch_texel_1d_f_a8,			/* FetchTexel1Df */
   fetch_texel_2d_f_a8,			/* FetchTexel2Df */
   fetch_texel_3d_f_a8,			/* FetchTexel3Df */
   store_texel_a8			/* StoreTexel */
};

const struct gl_texture_format _mesa_texformat_l8 = {
   MESA_FORMAT_L8,			/* MesaFormat */
   GL_LUMINANCE,			/* BaseFormat */
   GL_UNSIGNED_NORMALIZED_ARB,		/* DataType */
   0,					/* RedBits */
   0,					/* GreenBits */
   0,					/* BlueBits */
   0,					/* AlphaBits */
   8,					/* LuminanceBits */
   0,					/* IntensityBits */
   0,					/* IndexBits */
   0,					/* DepthBits */
   1,					/* TexelBytes */
   _mesa_texstore_a8,/*yes*/		/* StoreTexImageFunc */
   fetch_texel_1d_l8,			/* FetchTexel1D */
   fetch_texel_2d_l8,			/* FetchTexel2D */
   fetch_texel_3d_l8,			/* FetchTexel3D */
   fetch_texel_1d_f_l8,			/* FetchTexel1Df */
   fetch_texel_2d_f_l8,			/* FetchTexel2Df */
   fetch_texel_3d_f_l8,			/* FetchTexel3Df */
   store_texel_l8			/* StoreTexel */
};

const struct gl_texture_format _mesa_texformat_i8 = {
   MESA_FORMAT_I8,			/* MesaFormat */
   GL_INTENSITY,			/* BaseFormat */
   GL_UNSIGNED_NORMALIZED_ARB,		/* DataType */
   0,					/* RedBits */
   0,					/* GreenBits */
   0,					/* BlueBits */
   0,					/* AlphaBits */
   0,					/* LuminanceBits */
   8,					/* IntensityBits */
   0,					/* IndexBits */
   0,					/* DepthBits */
   1,					/* TexelBytes */
   _mesa_texstore_a8,/*yes*/		/* StoreTexImageFunc */
   fetch_texel_1d_i8,			/* FetchTexel1D */
   fetch_texel_2d_i8,			/* FetchTexel2D */
   fetch_texel_3d_i8,			/* FetchTexel3D */
   fetch_texel_1d_f_i8,			/* FetchTexel1Df */
   fetch_texel_2d_f_i8,			/* FetchTexel2Df */
   fetch_texel_3d_f_i8,			/* FetchTexel3Df */
   store_texel_i8			/* StoreTexel */
};

const struct gl_texture_format _mesa_texformat_ci8 = {
   MESA_FORMAT_CI8,			/* MesaFormat */
   GL_COLOR_INDEX,			/* BaseFormat */
   GL_UNSIGNED_NORMALIZED_ARB,		/* DataType */
   0,					/* RedBits */
   0,					/* GreenBits */
   0,					/* BlueBits */
   0,					/* AlphaBits */
   0,					/* LuminanceBits */

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -