diff --git a/main.c b/main.c index 302b9f9..a1f5605 100644 --- a/main.c +++ b/main.c @@ -15,13 +15,6 @@ static void closure(void) { printf("Merci du visionnage !\n"); } -// Comportement quand la fenĂȘtre est redimensionnĂ©e -static void resize(int w, int h) { - _dims[0] = w; - _dims[1] = h; - glViewport(0, 0, _dims[0], _dims[1]); -} - int main(int argc, char *argv[]) { if (!gl4duwCreateWindow(argc, argv, "Demo API8 2023", GL4DW_POS_CENTERED, GL4DW_POS_CENTERED, _dims[0], _dims[1], @@ -40,7 +33,6 @@ int main(int argc, char *argv[]) { gl4dhInit(animations, _dims[0], _dims[1], NULL); atexit(closure); - gl4duwResizeFunc(resize); gl4duwDisplayFunc(gl4dhDraw); gl4duwMainLoop();