-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathInterface2d.h
56 lines (39 loc) · 1.1 KB
/
Interface2d.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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
#pragma once
#pragma warning(disable : 4996)
#include "Renderer.h"
#include "Game.h"
#include "DatabaseReader.h"
#define MAIN_MENU 0
#define HISTORIC_MENU 1
#define GAME_MENU 2
#define PAUSE_MENU 3
#define END_MENU 4
#define CONFIG_MENU 5
typedef struct Interface2d
{
Window* window;
Camera* camera;
Game* game;
DatabaseReader dbReader;
Renderer2d r2d;
Object2dData mainMenu;
Object2dData button;
//Object2dData affichageActualScore;
int currentMenu;
char buffer[200];
int windowHeigt;
int windowWidth;
unsigned bestScore;
double avrScore;
}Interface2d;
void interface2dCreate(Interface2d* self, Window* window, Camera* camera, Game* game);
void interface2dObjectAdd(Interface2d* self);
void interface2dFrame(Interface2d* self);
void interface2dMainMenu(Interface2d* self);
void interface2dHistoricMenu(Interface2d* self);
void interface2dGameMenu(Interface2d* self);
void interface2dPauseMenu(Interface2d* self);
void interface2dEndMenu(Interface2d* self);
void interface2dConfigMenu(Interface2d* self);
void Renderer2dHistory(Interface2d* self);
void Rendere2dClearHistory(Interface2d* self);