-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathModuleWindow.h
45 lines (34 loc) · 851 Bytes
/
ModuleWindow.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
#ifndef MODULEWINDOW_H
#define MODULEWINDOW_H
#include "Module.h"
#include "Point.h"
#define MODULE_WINDOW "ModuleWindow"
#define WINDOW_SECTION "Config.Modules.Window"
struct SDL_Window;
struct SDL_Surface;
class ModuleWindow : public Module
{
public:
ModuleWindow();
~ModuleWindow();
bool Init();
bool CleanUp();
int GetScreenWidth() const { return iSCREENWIDTH; }
int GetScreenHeight() const { return iSCREENHEIGHT; }
int GetScreenSize() const { return iSCREENSIZE; }
private:
bool ConstantConfig();
public:
SDL_Window* window = nullptr;
SDL_Surface* screen_surface = nullptr;
private:
const char* strTITLE = "";
int iSCREENWIDTH = 0;
int iSCREENHEIGHT = 0;
int iSCREENSIZE = 0;
bool bFULLSCREEN = false;
bool bBORDERLESS = false;
bool bRESIZABLE = false;
bool bFULLSCREEN_DESKTOP = false;
};
#endif // !MODULEWINDOW_H