nouveau niveau + pofinage de lediteur
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user