SDL_WINDOW_RESIZABLE not applied, so no resize fn needed
This commit is contained in:
parent
d6c2ad8411
commit
f8b735e826
1 changed files with 0 additions and 8 deletions
8
main.c
8
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();
|
||||
|
||||
|
|
Reference in a new issue