VOX
A little voxel engine
Loading...
Searching...
No Matches
window.hpp
Go to the documentation of this file.
1#pragma once
2
3#include "define.hpp"
4#include "input.hpp"
5
6#include <GLFW/glfw3.h>
7
8#include <string>
9
10class Window
11{
12
13public:
14
22 Window(const std::string& title, uint32_t width, uint32_t height);
23
27 ~Window();
28
34 GLFWwindow* getGLFWwindow();
35
39 bool shouldClose();
40
46 Input & input() { return m_input; }
47
48private:
49
53 GLFWwindow* m_window;
54
58 Input m_input;
59
69 GLFWwindow* initWindow(const std::string& title, uint32_t width, uint32_t height);
70};
Definition: input.hpp:11
Definition: window.hpp:11
~Window()
Destroy the Window object.
Definition: window.cpp:11
Input & input()
Get the Input object for the window.
Definition: window.hpp:46
GLFWwindow * getGLFWwindow()
Get the GLFWwindow window pointer.
Definition: window.cpp:33
bool shouldClose()
Check if the window should close.
Definition: window.cpp:38