Graphics Reference
In-Depth Information
(continued)
If pname is GL_TEXTURE_WRAP_S , GL_TEXTURE_WRAP_R , or
GL_TEXTURE_WRAP_T , then param can be
GL_REPEAT , GL_CLAMP_TO_EDGE , or GL_MIRRORED_REPEAT
If pname is GL_TEXTURE_COMPARE_FUNC , then param can be
GL_LEQUAL , GL_EQUAL , GL_LESS , GL_GREATER , GL_EQUAL ,
GL_NOTEQUAL , GL_ALWAYS , or GL_NEVER
If pname is GL_TEXTURE_COMPARE_MODE , then param can be
GL_COMPARE_REF_TO_TEXTURE or GL_NONE
If pname is GL_TEXTURE_SWIZZLE_R , GL_TEXTURE_SWIZZLE_G ,
GL_TEXTURE_SWIZZLE_B , or GL_TEXTURE_SWIZZLE_A , then
param can be
GL_RED , GL_GREEN , GL_BLUE , GL_ALPHA , GL_ZERO , or GL_ONE
The magnification filter can be either GL_NEAREST or GL_LINEAR .
In  GL_NEAREST magnification filtering, a single point sample will be
taken from the texture nearest to the texture coordinate. In GL_LINEAR
magnification filtering, a bilinear (average of four samples) will be taken
from the texture about the texture coordinate.
The minification filter can be set to any of the following values:
GL_NEAREST —Takes a single point sample from the texture nearest to
the texture coordinate.
GL_LINEAR —Takes a bilinear sample from the texture nearest to the
texture coordinate.
GL_NEAREST_MIPMAP_NEAREST —Takes a single point sample from the
closest mip level chosen.
GL_NEAREST_MIPMAP_LINEAR —Takes a sample from the two closest
mip levels and interpolates between those samples.
GL_LINEAR_MIPMAP_NEAREST —Takes a bilinear fetch from the closest
mip level chosen.
GL_LINEAR_MIPMAP_LINEAR —Takes a bilinear fetch from each of the
two closest mip levels and then interpolates between them. This last
mode, which is typically referred to as trilinear filtering, produces the
best quality of all modes.
Note: GL_NEAREST and GL_LINEAR are the only texture minification
modes that do not require a complete mipmap chain to be specified
 
Search WWH ::




Custom Search