NoJobEngine 2.0.7
Loading...
Searching...
No Matches
Window.h
Go to the documentation of this file.
1
6#pragma once
7#include <cstdint>
8#include <string>
9struct GLFWwindow;
10
11namespace NoJob {
13 std::string Title = "NoJobEngine";
14 std::uint32_t Width = 1600;
15 std::uint32_t Height = 900;
16};
17
18class Window {
19public:
20 explicit Window(const WindowProps& props);
21 ~Window();
22 Window(const Window&) = delete;
23 Window& operator=(const Window&) = delete;
24
25 bool ShouldClose() const;
26 void PollEvents() const;
27 void SwapBuffers() const;
28 GLFWwindow* GetNativeWindow() const { return m_Window; }
29
30private:
31 GLFWwindow* m_Window = nullptr;
32};
33}
void SwapBuffers() const
Definition Window.cpp:43
Window(const Window &)=delete
void PollEvents() const
Definition Window.cpp:42
Window & operator=(const Window &)=delete
Window(const WindowProps &props)
Definition Window.cpp:9
bool ShouldClose() const
Definition Window.cpp:39
GLFWwindow * GetNativeWindow() const
Definition Window.h:28
std::uint32_t Height
Definition Window.h:15
std::string Title
Definition Window.h:13
std::uint32_t Width
Definition Window.h:14