ajout main
This commit is contained in:
1 parent
47ae303ec1
commit
54a0f24313
1 file changed
+3
-2
@@ -32,12 +32,13 @@ void render(SDL_Window* win, SDL_Renderer* ren, Env* env) { /* PUT YOUR CODE HER
|
||||
/* **************************************************************** */
|
||||
|
||||
bool process(SDL_Window* win, SDL_Renderer* ren, Env* env, SDL_Event* e) {
|
||||
int w, h;
|
||||
SDL_GetWindowSize(win, &w, &h);
|
||||
|
||||
if (e->type == SDL_QUIT) {
|
||||
return true;
|
||||
}
|
||||
|
||||
/* PUT YOUR CODE HERE TO PROCESS EVENTS */
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user