SDL_WINDOW_RESIZABLE not applied, so no resize fn needed

This commit is contained in:
Mylloon 2023-05-03 13:06:29 +02:00
parent d6c2ad8411
commit f8b735e826
Signed by: Anri
GPG key ID: A82D63DFF8D1317F

8
main.c
View file

@ -15,13 +15,6 @@ static void closure(void) {
printf("Merci du visionnage !\n"); 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[]) { int main(int argc, char *argv[]) {
if (!gl4duwCreateWindow(argc, argv, "Demo API8 2023", GL4DW_POS_CENTERED, if (!gl4duwCreateWindow(argc, argv, "Demo API8 2023", GL4DW_POS_CENTERED,
GL4DW_POS_CENTERED, _dims[0], _dims[1], GL4DW_POS_CENTERED, _dims[0], _dims[1],
@ -40,7 +33,6 @@ int main(int argc, char *argv[]) {
gl4dhInit(animations, _dims[0], _dims[1], NULL); gl4dhInit(animations, _dims[0], _dims[1], NULL);
atexit(closure); atexit(closure);
gl4duwResizeFunc(resize);
gl4duwDisplayFunc(gl4dhDraw); gl4duwDisplayFunc(gl4dhDraw);
gl4duwMainLoop(); gl4duwMainLoop();