Vesper 0.5.1
Vesper is short form for the Latin word for "Bat", as Vesper is designed to be small, lightweight, and easily handle things like particles and flocking behaviors in accordance with the nature of bats. \n It is meant to be a particle simulation, VFX editor, and CAN be used secondarily as a small game engine.
GitHub | Vesper Updates | Creator
Loading...
Searching...
No Matches
GraphicsContext.h
Go to the documentation of this file.
1#pragma once
2
3#include "Vesper/Core/Base.h"
4
5namespace Vesper {
6
7 /// @class GraphicsContext
8 /// @brief Abstract class representing a graphics context.
10 {
11 public:
12 virtual ~GraphicsContext() {}
13 /// @brief Initializes the graphics context.
14 virtual void Init() = 0;
15 /// @brief Swaps the front and back buffers.
16 virtual void SwapBuffers() = 0;
17
18 };
19
20}
#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.
virtual ~GraphicsContext()
Definition GraphicsContext.h:12
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