PDA

View Full Version : MipMapping



KRONOS
03-10-2001, 12:15 PM
Is there any way to generate mipmaps without glut? If so, please give me some source code as I need it very quickly......

Rob The Bloke
03-10-2001, 01:07 PM
use :

glTexParameteri(GL_TEXTURE_2D,GL_TEXTURE_MAG_FILTE R,GL_LINEAR_MIPMAP_LINEAR);
glTexParameteri(GL_TEXTURE_2D,GL_TEXTURE_MIN_FILTE R,GL_LINEAR_MIPMAP_LINEAR);

gluBuild2DMipmaps(GL_TEXTURE_2D, texFormat, imageWidth, imageHeight, texFormat, GL_UNSIGNED_BYTE, imageData);

you'll need to ammend it for your needs though.....