Re: PROBLEME AJAC 3 (SPECIAL WAR)
Pas compris ?
Bobby wrote:
Tais toi Virus!
Tais toi Virus!
#include#include "GL/glut.h" using namespace std; void graphiqueAffichage(); void graphiqueRedim(int x, int y); void main(void) { cout << "test"; } void graphique() { glutInitWindowPosition(10, 10); glutInitWindowSize(640, 480); glutInitDisplayMode(GLUT_RGBA | GLUT_SINGLE); glutCreateWindow("TEST"); glutDisplayFunc(graphiqueAffichage); glutReshapeFunc(graphiqueRedim); glutMainLoop(); } void graphiqueAffichage() { //couleur de fond glClearColor(1.0, 1.0, 1.0, 1.0); //Efface l'ecran //glClear(GL_COLOR_BUFFER_BIT); glMatrixMode(GL_MODELVIEW); glFlush(); } void graphiqueRedim(int x, int y) { glViewport(10, 10, x-20, y-20); glMatrixMode(GL_PROJECTION); glLoadIdentity(); gluOrtho2D(0.0 , 100.0, 0.0, 100.0); }
Comment