edouard22 | ok, maintenant ca marche, plus d'erreur ny a la compilation, ni a la contruction, mais losque j'execute, windows m'envoie un message de beugage, avec un rapport a envoyé...
voici mon code finiollé:
Code :
- #include <iostream.h>
- #include <stdlib.h>
- #include <windows.h>
- #include <GL/glut.h>
- void affichage();
- int main (int argc,char **argv){
- glutInit(&argc, argv);
- glutInitDisplayMode(GLUT_RGB);
- glutInitWindowPosition(200,200);
- glutInitWindowSize(250,250);
- glutCreateWindow("gamme de gaz" );
- glClearColor (1.0,1.0,1.0,0.0);
- glPointSize (2.0);
- glutDisplayFunc(affichage);
- glutMainLoop();
- return 0;
- }
- void affichage (){
- glBegin (GL_POLYGON);
- glColor3f (0.0,0.0,0.0);
- glVertex2f(-10,-10);
- glColor3f (0.0,0.0,0.0);
- glVertex2f(-5,-10);
- glColor3f (0.0,0.0,0.0);
- glVertex2f(-5,-9);
- glColor3f (0.0,0.0,0.0);
- glVertex2f(-10,-9);
- glEnd();
- }
|
merci pour votre patience.... |