salut,

j'affiche une texture à un endroit precis, mais le reste de mes objets ne s'affiche pas, que dois je faire?

code où se situe le probleme:
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
 
void LoadTexture() 
{ 
AUX_RGBImageRec *texture1; 
texture1 = auxDIBImageLoad("score\\0.bmp"); 
glGenTextures (1, &texture[0]); 
glBindTexture (GL_TEXTURE_2D, texture[0]); 
glTexParameteri (GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER,GL_NEAREST); 
glTexParameteri (GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER,GL_NEAREST); 
glTexImage2D(GL_TEXTURE_2D, 0, 3, texture1->sizeX, texture1->sizeY, 0, GL_RGB, GL_UNSIGNED_BYTE, texture1->data); 
}