Anisotropic Filtering

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@1654 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Lance 2005-12-01 11:22:20 +00:00
parent eae50d7bf6
commit 96c5dd71ec
2 changed files with 17 additions and 3 deletions

View File

@ -128,6 +128,7 @@ lpMTexFUNC qglMTexCoord2fSGIS;
lpSelTexFUNC qglSelectTextureSGIS;
int mtexid0;
int mtexid1;
int gl_anisotropy_factor_max;
//ati_truform
PFNGLPNTRIANGLESIATIPROC qglPNTrianglesiATI;
@ -225,6 +226,17 @@ void GL_CheckExtensions (void *(*getglfunction) (char *name))
gl_config.arb_shader_objects = false;
gl_config.ext_texture_filter_anisotropic = false;
if (strstr(gl_extensions, "GL_EXT_texture_filter_anisotropic"))
{
gl_config.ext_texture_filter_anisotropic = true;
qglGetIntegerv(GL_MAX_TEXTURE_MAX_ANISOTROPY_EXT, &gl_anisotropy_factor_max);
Con_SafePrintf("Anistropic filter extension found (%dx max).\n",gl_anisotropy_factor_max);
}
if (strstr(gl_extensions, "GL_ARB_texture_non_power_of_two"))
gl_config.arb_texture_non_power_of_two = true;
// if (strstr(gl_extensions, "GL_SGIS_generate_mipmap")) //a suprising number of implementations have this broken.

View File

@ -97,6 +97,8 @@ typedef struct {
qboolean arb_texture_env_dot3;
qboolean arb_texture_cube_map;
qboolean ext_texture_filter_anisotropic;
qboolean arb_texture_compression;
// qboolean arb_fragment_program;
qboolean arb_shader_objects;