From f35c29f4296d9f69c4ef3df307eb911baee7625a Mon Sep 17 00:00:00 2001 From: Theo Date: Thu, 5 Sep 2024 15:52:41 +0200 Subject: [PATCH] =?UTF-8?q?Le=20bon=20code=20pour=20linux=20=F0=9F=90=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.c | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/main.c b/main.c index b586011..83fb7aa 100644 --- a/main.c +++ b/main.c @@ -1,7 +1,6 @@ #include #include -#include -#include "glut.h" +#include void afficher(void) { @@ -23,7 +22,16 @@ void afficher(void) int main(int argc, char* argv[]) { - printf("Hello, World!"); - afficher(); + glutInit(&argc, argv); + glutInitDisplayMode(GLUT_SINGLE|GLUT_RGBA); + + int win = glutCreateWindow("glut"); + + glutDisplayFunc(afficher); + + glutMainLoop(); + + glutDestroyWindow(win); + return EXIT_SUCCESS; -} \ No newline at end of file +}