légère modif du model

This commit is contained in:
valentin carmona committed 2022-03-13 11:36:52 +01:00
1 parent c60b2a3f67
commit 0ff18f38d6
1 file changed
+24 -3
+24 -3
View File
@@ -11,7 +11,14 @@
/* **************************************************************** */
struct Env_t {
/* PUT YOUR VARIABLES HERE */
SDL_Texture* but_new_game_up;
SDL_Texture* but_new_game_down;
SDL_Texture* but_undo_up;
SDL_Texture* but_undo_down;
SDL_Texture* but_redo_up;
SDL_Texture* but_redo_down;
SDL_Texture* but_solve_up;
SDL_Texture* but_solve_down;
};
/* **************************************************************** */
@@ -36,9 +43,23 @@ bool process(SDL_Window* win, SDL_Renderer* ren, Env* env, SDL_Event* e) {
SDL_GetWindowSize(win, &w, &h);
if (e->type == SDL_QUIT) {
return true;
}
return true;
}
#ifdef _ANDROID_
#else
else if (e->type == SDL_WINDOWEVENT){
init(win, ren , w, h/*(w, h) a changer*/);
}
else if (e->type == SDL_SDL_MOUSEMOTION){
SDL_Point mouse;
SDL_GetMouseState(&mouse.x, &mouse.y);
}
else if (e->type == SDL_MOUSEBUTTONDOWN){
}
#endif
return false;
}