Plus jammais on en reparle

This commit is contained in:
Marc
2023-01-21 18:25:17 +01:00
parent 814d135ada
commit 1a0ef2e90a
5 changed files with 60 additions and 30 deletions
+3 -3
View File
@@ -17,7 +17,7 @@ bool running;
MonitorSize_t monitorSize;
SDL_Window* win;
SDL_Renderer * renderer;
Scene_t * scene;
const Scene_t * scene;
int scenesCount = 0;
//int (*compar)(const void [.size], const void [.size], void *)
@@ -26,7 +26,7 @@ void renderer_main(void(*game_setup)(void), void(*game_loop)(void)) {
if (SDL_Init(SDL_INIT_EVERYTHING) != 0) {
printf("error initializing SDL: %s\n", SDL_GetError());
}
win = SDL_CreateWindow("GAME", // creates a window
win = SDL_CreateWindow("The legend of ADAM", // creates a window
SDL_WINDOWPOS_CENTERED,
SDL_WINDOWPOS_CENTERED,
1280, 720, 0);
@@ -82,7 +82,7 @@ void renderer_main(void(*game_setup)(void), void(*game_loop)(void)) {
}
}
void renderer_setScene(Scene_t * newScene) {
void renderer_setScene(const Scene_t * newScene) {
scene = newScene;
}