i have this at the compilation :
--------------------Configuration: premiere_texture - Win32 Debug--------------------
Compiling…
premiere_texture.cpp
D:\programmation[Mes programmes Open GL]\premiere_texture.cpp(19) : error C2065: ‘GL_TEXTURE_BASE_LEVEL’ : undeclared identifier
D:\programmation[Mes programmes Open GL]\premiere_texture.cpp(20) : error C2065: ‘GL_TEXTURE_MAX_LEVEL’ : undeclared identifier
Error executing cl.exe.
premiere_texture.exe - 2 error(s), 0 warning(s)
what do i have forgotten ?
my headers are :
#include <gl\GLAUX.h>
#include <gl\glut.h>
#include <gl\gl.h>
can you tell me too if my program is correct ? because it don’t displays the textures of mipmap.:-/
void init ()
{
AUX_RGBImageRec *texture1;
texture1 = auxDIBImageLoad(“herbe256.bmp”);
AUX_RGBImageRec *texture2;
texture2 = auxDIBImageLoad(“bois.bmp”);
glGenTextures (1, texname) ;
glBindTexture (GL_TEXTURE_2D, texname[0]) ;
glTexParameteri (GL_TEXTURE_2D, GL_TEXTURE_BASE_LEVEL, 0);
glTexParameteri (GL_TEXTURE_2D, GL_TEXTURE_MAX_LEVEL, 1);
glTexParameteri (GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER,GL_LINEAR);
glTexParameteri (GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER,GL_LINEAR_MIPMAP_LINEAR);glTexImage2D(GL_TEXTURE_2D, 0, 3, (texture1)->sizeX, (texture1)->sizeY,
0, GL_RGB, GL_UNSIGNED_BYTE, (texture1)->data);
glTexImage2D(GL_TEXTURE_2D, 1, 3, (texture2)->sizeX, (texture2)->sizeY,
0, GL_RGB, GL_UNSIGNED_BYTE, (texture2)->data);
glEnable(GL_TEXTURE_2D) ;
}
[This message has been edited by airseb (edited 05-08-2003).]
[This message has been edited by airseb (edited 05-08-2003).]