-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathWindow.hpp
More file actions
48 lines (37 loc) · 679 Bytes
/
Window.hpp
File metadata and controls
48 lines (37 loc) · 679 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
#pragma once
#ifdef _WIN32
#include <Windows.h>
#endif
#include "VulkanWrapper/VulkanSurface.hpp"
namespace nu
{
enum EventType
{
MouseClick,
MouseMove,
MouseWheel,
Resize,
Close
};
struct Event
{
EventType type;
int param1;
int param2;
};
class Window
{
public:
Window();
Window(const std::string& windowTitle, int x, int y, int width, int height);
~Window();
bool create(const std::string& windowTitle, int x, int y, int width, int height);
void close();
bool isOpen() const;
bool pollEvent(Event& event);
const VulkanWindowParameters& getParameters() const;
private:
VulkanWindowParameters mParameters;
bool mOpen;
};
} // namespace nu