-
Notifications
You must be signed in to change notification settings - Fork 0
/
Window.h
40 lines (27 loc) · 806 Bytes
/
Window.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
//
// Created by Gordon on 16.05.2017.
//
#ifndef PAXENGINE3_WINDOW_H
#define PAXENGINE3_WINDOW_H
#include <string>
#include <paxutil/lib/GlmIncludes.h>
#include "polypropylene/event/EventHandler.h"
#include "event/ResolutionChangedEvent.h"
namespace PAX {
class InputSystem;
class Window {
friend class InputSystem;
bool _fullscreen = false;
protected:
glm::ivec2 _resolution;
public:
virtual ~Window() = default;
EventHandler<ResolutionChangedEvent&> OnResolutionChanged;
virtual void setResolution(const glm::ivec2 & resolution);
virtual glm::ivec2 getResolution();
virtual void setFullscreen(bool fullscreen);
bool isFullscreen();
virtual void dispose();
};
}
#endif //PAXENGINE3_WINDOW_H