•gluBuild2DMipmaps(GL_TEXTURE_2D,
components, width,
height, format, type, data)
•This will generate all
the mipmaps using gluScaleImage
•glTexParameterf(GL_TEXTURE_2D,
GL_TEXTURE_MIN_FILTER, GL_NEAREST_MIPMAP_NEAREST)
–This will tell GL to
use the mipmaps for the texture