Newer
Older
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
#pragma once
#include <vulkan/vulkan.hpp>
#define GLFW_INCLUDE_VULKAN
#include <GLFW/glfw3.h>
namespace vkcv {
class Window final {
private:
explicit Window(GLFWwindow *window);
GLFWwindow *m_window;
public:
static Window create(const char *windowTitle, int width = -1, int height = -1, bool resizable = false);
[[nodiscard]]
bool isWindowOpen() const;
static void pollEvents();
[[nodiscard]]
GLFWwindow *getWindow() const;
[[nodiscard]]
int getWidth() const;
[[nodiscard]]
int getHeight() const;
Window &operator=(const Window &other) = delete;
Window &operator=(Window &&other) = default;
virtual ~Window();
};
}