-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPictures.cpp
35 lines (28 loc) · 1.05 KB
/
Pictures.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#include "Pictures.h"
#include <SDL.h>
#include <SDL_image.h>
#include <SDL_ttf.h>
#include <sstream>
using namespace std;
int Score = 0;
void Pictures::getGamePlayBackground(SDL_Renderer *renderer)
{
SDL_Texture* loadGamePlayBackground = NULL;
loadGamePlayBackground = IMG_LoadTexture(renderer ,"GamePlayBackground.png");
SDL_RenderCopy(renderer, loadGamePlayBackground, NULL, NULL);
SDL_DestroyTexture(loadGamePlayBackground);
}
void Pictures::getMenuBackground(SDL_Renderer *renderer)
{
SDL_Texture* loadMenuBackground = NULL;
loadMenuBackground = IMG_LoadTexture(renderer ,"6.png");
SDL_RenderCopy(renderer, loadMenuBackground, NULL, NULL);
SDL_DestroyTexture(loadMenuBackground);
}
void Pictures::getInstructionBackground(SDL_Renderer *renderer)
{
SDL_Texture* loadInstructionBackground = NULL;
loadInstructionBackground = IMG_LoadTexture(renderer ,"InsBackground.png");
SDL_RenderCopy(renderer, loadInstructionBackground, NULL, NULL);
SDL_DestroyTexture(loadInstructionBackground);
}