3#include "Vesper/App/Window.h"
6#include "Vesper/Renderer/GraphicsContext.h"
18 unsigned int GetWidth()
const override {
return m_Data.Width; }
19 unsigned int GetHeight()
const override {
return m_Data.Height; }
22 void SetEventCallback(
const EventCallbackFn& callback)
override { m_Data.EventCallback = callback; }
23 void SetVSync(
bool enabled)
override;
#define VZ_CORE_ASSERT(x,...)
Definition Asserts.h:20
#define VZ_PROFILE_FUNCTION()
Definition Instrumentor.h:240
#define VZ_CORE_WARN(...)
warn: indicates a potential issue or important event
Definition Log.h:39
#define VZ_CORE_INFO(...)
info: general information about application flow
Definition Log.h:37
#define VZ_CORE_ERROR(...)
error: indicates an error that has occurred
Definition Log.h:41
Abstract class representing a graphics context.
Definition GraphicsContext.h:10
virtual void Init()=0
Initializes the graphics context.
virtual void SwapBuffers()=0
Swaps the front and back buffers.
Abstract interface representing an application window.
Definition Window.h:43
Definition WindowsWindow.h:12
WindowData m_Data
Definition WindowsWindow.h:40
bool IsVSync() const override
Checks if vertical synchronization (VSync) is enabled.
Definition WindowsWindow.cpp:174
GraphicsContext * m_Context
Definition WindowsWindow.h:31
virtual void Shutdown()
Definition WindowsWindow.cpp:150
void SetEventCallback(const EventCallbackFn &callback) override
Sets the callback function for window events.
Definition WindowsWindow.h:22
virtual void * GetNativeWindow() const override
Retrieves the native window handle.
Definition WindowsWindow.h:25
virtual ~WindowsWindow()
Definition WindowsWindow.cpp:31
std::string Title
Definition WindowsWindow.h:34
WindowsWindow(const WindowProps &props)
Definition WindowsWindow.cpp:25
virtual void Init(const WindowProps &props)
Definition WindowsWindow.cpp:36
void OnUpdate() override
Called every frame to update the window.
Definition WindowsWindow.cpp:156
GLFWwindow * m_Window
Definition WindowsWindow.h:30
unsigned int Height
Definition WindowsWindow.h:35
EventCallbackFn EventCallback
Definition WindowsWindow.h:38
bool VSync
Definition WindowsWindow.h:36
unsigned int GetHeight() const override
Retrieves the height of the window.
Definition WindowsWindow.h:19
void SetVSync(bool enabled) override
Sets whether vertical synchronization (VSync) is enabled.
Definition WindowsWindow.cpp:163
unsigned int Width
Definition WindowsWindow.h:35
unsigned int GetWidth() const override
Retrieves the width of the window.
Definition WindowsWindow.h:18
Definition WindowsWindow.h:33
TEMPORARY.
Definition WindowsInput.cpp:7
static bool s_GLFWInitialized
Definition WindowsWindow.cpp:13
static void GLFWErrorCallback(int error, const char *description)
Definition WindowsWindow.cpp:15
Holds the data for window configuration.
Definition Window.h:23
uint32_t Height
Definition Window.h:26
uint32_t Width
Definition Window.h:25