#include <WindowsWindow.h>
◆ Muto::WindowsWindow::WindowData
| struct Muto::WindowsWindow::WindowData |
◆ WindowsWindow()
26 {
29 }
#define MU_PROFILE_FUNCTION()
Definition Instrumentor.h:240
virtual void Init(const WindowProps &props)
Definition WindowsWindow.cpp:36
constexpr Scope< T > CreateScope(Args &&... args)
Creates a Scope (unique_ptr) for the given type and constructor arguments.
Definition Defines_Macros.h:51
References Init().
◆ ~WindowsWindow()
| Muto::WindowsWindow::~WindowsWindow |
( |
| ) |
|
|
virtual |
32 {
34 }
virtual void Shutdown()
Definition WindowsWindow.cpp:150
References Shutdown().
◆ GetHeight()
Retrieves the height of the window.
Implements Muto::Window.
WindowData m_Data
Definition WindowsWindow.h:40
unsigned int Height
Definition WindowsWindow.h:35
◆ GetNativeWindow()
| virtual void * Muto::WindowsWindow::GetNativeWindow |
( |
| ) |
const |
|
inlineoverridevirtual |
Retrieves the native window handle.
Implements Muto::Window.
GLFWwindow * m_Window
Definition WindowsWindow.h:30
◆ GetWidth()
Retrieves the width of the window.
Implements Muto::Window.
unsigned int Width
Definition WindowsWindow.h:35
◆ Init()
37 {
42
44
45
47 {
52 }
53
55
58
59
62
63
65 {
69
73 });
74
76 {
78 WindowCloseEvent
event;
80 });
81
83 {
86 {
88 {
91 break;
92 }
94 {
97 break;
98 }
100 {
103 break;
104 }
105 }
106 });
107
109 {
113 });
114
116 {
119 {
121 {
124 break;
125 }
127 {
130 break;
131 }
132 }
133 });
134
136 {
140 });
141
143 {
147 });
148 }
#define MU_CORE_ASSERT(x,...)
Definition Asserts.h:32
#define MU_CORE_WARN(...)
warn: indicates a potential issue or important event
Definition Log.h:40
#define MU_CORE_INFO(...)
info: general information about application flow
Definition Log.h:38
virtual void Init()=0
Initializes the graphics context.
void SetVSync(bool enabled) override
Sets whether vertical synchronization (VSync) is enabled.
Definition WindowsWindow.cpp:163
GraphicsContext * m_Context
Definition WindowsWindow.h:31
std::string Title
Definition WindowsWindow.h:34
static bool s_GLFWInitialized
Definition WindowsWindow.cpp:13
static void GLFWErrorCallback(int error, const char *description)
Definition WindowsWindow.cpp:15
References Muto::GLFWErrorCallback(), Muto::WindowProps::Height, Muto::GraphicsContext::Init(), m_Context, Muto::s_GLFWInitialized, SetVSync(), Muto::WindowProps::Title, and Muto::WindowProps::Width.
Referenced by WindowsWindow().
◆ IsVSync()
| bool Muto::WindowsWindow::IsVSync |
( |
| ) |
const |
|
overridevirtual |
Checks if vertical synchronization (VSync) is enabled.
Implements Muto::Window.
175 {
177 }
bool VSync
Definition WindowsWindow.h:36
◆ OnUpdate()
| void Muto::WindowsWindow::OnUpdate |
( |
| ) |
|
|
overridevirtual |
◆ SetEventCallback()
Sets the callback function for window events.
Implements Muto::Window.
EventCallbackFn EventCallback
Definition WindowsWindow.h:38
◆ SetVSync()
| void Muto::WindowsWindow::SetVSync |
( |
bool |
enabled | ) |
|
|
overridevirtual |
Sets whether vertical synchronization (VSync) is enabled.
Implements Muto::Window.
Referenced by Init().
◆ Shutdown()
| void Muto::WindowsWindow::Shutdown |
( |
| ) |
|
|
privatevirtual |
◆ m_Context
◆ m_Data
◆ m_Window
The documentation for this class was generated from the following files: