PDA

View Full Version : [RESOLVED] Where is GL_GENERATE_MIPMAP?



alexin
05-01-2008, 04:43 PM
I'd like to use 'glTexParameteri(GL_TEXTURE_2D, GL_GENERATE_MIPMAP, GL_TRUE)' for mipmapping. The problem is my compiler can't find GL_GENERATE_MIPMAP, so I searched for it myself in the header (gl.h), but I can't find it.

I suppose mi version of 'gl.h' is previous to the addition of the flag. If so, where can I find an updated one?

Is there another way to automatically generate mipmaps without GLUT?

Alex

Nicolai de Haan
05-01-2008, 05:14 PM
It is part of OpenGL 1.4 if that helps.

alexin
05-01-2008, 05:34 PM
I found a more recent header from Mesa3D and it seems to work fine.

Thanks.