-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathModuleWindow.h
More file actions
45 lines (34 loc) · 837 Bytes
/
ModuleWindow.h
File metadata and controls
45 lines (34 loc) · 837 Bytes
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 "SDL/include/SDL.h"
class Application;
class ModuleWindow : public Module
{
public:
ModuleWindow(Application* app, bool start_enabled = true);
// Destructor
virtual ~ModuleWindow();
bool Init();
bool CleanUp();
public:
//The window we'll be rendering to
SDL_Window* window;
//The surface contained by the window
SDL_Surface* screen_surface;
void SetFullscreen(bool fullscreen);
void SetResizable(bool resizable);
void SetBorderless(bool borderless);
void SetFullDesktop(bool full_desktop);
void SetBrightness(float brightness);
void SetWidth(int width);
uint GetWidth();
void SetHeight(int height);
uint GetHeight();
uint GetRefreshRate();
private:
bool resizable;
uint width;
uint height;
};
#endif // __ModuleWindow_H__