Tout d'abord je ne travaille pas sous Linux mais sous WindowsXP mais je n'ai pas trouver de sous-forum correspondant dsl

.
Alors voila, j'essaye de faire un carré simple en OpenGl mais ca marche pas, quand j'essaye, avec mes coordonnées ca donne ca :
[ Lien ]Voici mon code (de la fonction d'affichage), dsl je le fait de tête, j'azi pas mon ordi sous la main^^ :
void Affichage()
{
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT) ;
glMatrixMode(GL_MODELVIEW) ;
glLoadIdentity ;
glTranslatef(0.0f, 0.0f, -5.0f) ;
glPushMatrix() ;
glTranslatef(0.0f, 1.0f, 0.0f) ;
glBegin(GL_QUADS) ;
glVertex3f(1.0f, 0.0f, 0.0f) ;
glVertex3f(-1.0f, -2.0f, 0.0f) ;
glVertex3f(-1.0f, 0.0f, 0.0f) ;
glVertex3f(1.0f, -2.0f, 0.0f) ;
glEnd() ;
glPopMatrix ;
}
Voila...quelqu'un pourrait m'expliquer pourquoi j'ai cette image svp?