mirror of
https://github.com/nzp-team/fteqw.git
synced 2024-11-29 23:22:01 +00:00
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:
parent
eae50d7bf6
commit
96c5dd71ec
2 changed files with 17 additions and 3 deletions
|
@ -128,6 +128,7 @@ lpMTexFUNC qglMTexCoord2fSGIS;
|
||||||
lpSelTexFUNC qglSelectTextureSGIS;
|
lpSelTexFUNC qglSelectTextureSGIS;
|
||||||
int mtexid0;
|
int mtexid0;
|
||||||
int mtexid1;
|
int mtexid1;
|
||||||
|
int gl_anisotropy_factor_max;
|
||||||
|
|
||||||
//ati_truform
|
//ati_truform
|
||||||
PFNGLPNTRIANGLESIATIPROC qglPNTrianglesiATI;
|
PFNGLPNTRIANGLESIATIPROC qglPNTrianglesiATI;
|
||||||
|
@ -225,6 +226,17 @@ void GL_CheckExtensions (void *(*getglfunction) (char *name))
|
||||||
|
|
||||||
gl_config.arb_shader_objects = false;
|
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"))
|
if (strstr(gl_extensions, "GL_ARB_texture_non_power_of_two"))
|
||||||
gl_config.arb_texture_non_power_of_two = true;
|
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.
|
// if (strstr(gl_extensions, "GL_SGIS_generate_mipmap")) //a suprising number of implementations have this broken.
|
||||||
|
|
|
@ -97,6 +97,8 @@ typedef struct {
|
||||||
qboolean arb_texture_env_dot3;
|
qboolean arb_texture_env_dot3;
|
||||||
qboolean arb_texture_cube_map;
|
qboolean arb_texture_cube_map;
|
||||||
|
|
||||||
|
qboolean ext_texture_filter_anisotropic;
|
||||||
|
|
||||||
qboolean arb_texture_compression;
|
qboolean arb_texture_compression;
|
||||||
// qboolean arb_fragment_program;
|
// qboolean arb_fragment_program;
|
||||||
qboolean arb_shader_objects;
|
qboolean arb_shader_objects;
|
||||||
|
|
Loading…
Reference in a new issue