Filtering
glTexParameteri(GL_TEXTURE_2D, filter, mode)
If filter is GL_TEX_MAG_FILTER, mode can be
- GL_NEAREST - choose the texel nearest the center of the pixel
- GL_LINEAR - average the four nearest texels
If filter is GL_TEX_MIN_FILTER, mode can be
- GL_NEAREST - choose the texel nearest the center of the pixel
- GL_LINEAR - average the four nearest texels
- a mipmapping mode
Example: texfilter.py