nouveau niveau + pofinage de lediteur

This commit is contained in:
cyjullien1
2025-01-06 17:13:27 +01:00
parent 13fd66cecb
commit e9b91e0e81
8 changed files with 50 additions and 16 deletions

View File

@@ -253,13 +253,22 @@ void displayTextSDL (dis *display_user, char *text, vect coor, vect size,
/**
* \brief Afficher l'arriere plan.
* \param display_user Tout les information du display de l'utilisateur utile.
* \param bg quel back ground afficher.
*/
void backgroundDisplay(dis *display_user)
void backgroundDisplay(dis *display_user,int bg)
{
SDL_Surface *img;
SDL_Texture *texture;
img = IMG_Load("image/background.png");
if(bg==1)
{
img = IMG_Load("image/backgroundInGame.png");
}
else if(bg==2)
{
img = IMG_Load("image/backgroundInEditor.png");
}
texture = SDL_CreateTextureFromSurface (display_user->renderer, img);