Plus jammais on en reparle
This commit is contained in:
+3
-3
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user