-
Notifications
You must be signed in to change notification settings - Fork 0
/
MainMenu.h
35 lines (30 loc) · 846 Bytes
/
MainMenu.h
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
#pragma once
#include "SDL.h"
#include "Button.h"
#include "Button_Pos.h"
#include "SDL_image.h"
#include <iostream>
using namespace std;
class MainMenu
{
private:
LTexture* texture;
SDL_Renderer* gRenderer;
Button Newgame;
Button LoadGame;
Button Quit;
Button_Pos Newgamepos;
Button_Pos Loadgamepos;
Button_Pos Quitpos;
public:
MainMenu();
MainMenu(LTexture* t, SDL_Renderer* r, int x1, int y1, int x2, int y2, int x3, int y3);
MainMenu MenuPic(SDL_Renderer* r, int, int);
void Display(const std::string &image_path);
void DisplayNewgame(int, int, int, int);
void DisplayLoadgame(int, int, int, int);
void Background(int w, int h, const std::string &image_path);
Button_Pos New_game();
Button_Pos Load_Game();
Button_Pos Quit_();
};