MipMapping

Is there any way to generate mipmaps without glut? If so, please give me some source code as I need it very quickly…

use :

glTexParameteri(GL_TEXTURE_2D,GL_TEXTURE_MAG_FILTER,GL_LINEAR_MIPMAP_LINEAR);
glTexParameteri(GL_TEXTURE_2D,GL_TEXTURE_MIN_FILTER,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…