-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathModuleWindow.h
More file actions
49 lines (34 loc) · 809 Bytes
/
Copy pathModuleWindow.h
File metadata and controls
49 lines (34 loc) · 809 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
46
47
48
49
#ifndef __ModuleWindow_H__
#define __ModuleWindow_H__
#include "Module.h"
#include "Globals.h"
#include "SDL/SDL.h"
class Application;
class ModuleWindow : public Module
{
public:
bool fullscreen = FULLSCREEN;
bool resizable = RESIZABLE;
int width = 0;
int height = 0;
void Resize(unsigned int newWidth, unsigned int newHeight);
ModuleWindow();
// Destructor
virtual ~ModuleWindow();
// Called before quitting
bool Init();
// Called before quitting
bool CleanUp();
//Update
update_status Update();
//FullScreen
void setFullscreen(bool fullscrean);
public:
//The window we'll be rendering to
SDL_Window* window = nullptr;
//The surface contained by the window
SDL_Surface* screen_surface = nullptr;
//Context
SDL_GLContext glcontext = NULL;
};
#endif // __ModuleWindow_H__