NoJobEngine
2.0.7
Toggle main menu visibility
Loading...
Searching...
No Matches
Window.h
Go to the documentation of this file.
1
6
#pragma once
7
#include <cstdint>
8
#include <string>
9
struct
GLFWwindow;
10
11
namespace
NoJob
{
12
struct
WindowProps
{
13
std::string
Title
=
"NoJobEngine"
;
14
std::uint32_t
Width
= 1600;
15
std::uint32_t
Height
= 900;
16
};
17
18
class
Window
{
19
public
:
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
30
private
:
31
GLFWwindow* m_Window =
nullptr
;
32
};
33
}
NoJob::Window::SwapBuffers
void SwapBuffers() const
Definition
Window.cpp:43
NoJob::Window::Window
Window(const Window &)=delete
NoJob::Window::PollEvents
void PollEvents() const
Definition
Window.cpp:42
NoJob::Window::operator=
Window & operator=(const Window &)=delete
NoJob::Window::Window
Window(const WindowProps &props)
Definition
Window.cpp:9
NoJob::Window::ShouldClose
bool ShouldClose() const
Definition
Window.cpp:39
NoJob::Window::GetNativeWindow
GLFWwindow * GetNativeWindow() const
Definition
Window.h:28
NoJob
Definition
BTActionNode.h:13
NoJob::WindowProps
Definition
Window.h:12
NoJob::WindowProps::Height
std::uint32_t Height
Definition
Window.h:15
NoJob::WindowProps::Title
std::string Title
Definition
Window.h:13
NoJob::WindowProps::Width
std::uint32_t Width
Definition
Window.h:14
Engine
Core
Window.h
Generated by
1.18.0