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
OpenGLContext.h
Go to the documentation of this file.
1#pragma once
2
3#include "Vesper/Renderer/GraphicsContext.h"
4
5struct GLFWwindow;
6
7namespace Vesper {
9 {
10 public:
11 OpenGLContext(GLFWwindow* windowHandle);
12 virtual ~OpenGLContext();
13 void Init() override;
14 void SwapBuffers() override;
15 private:
16 GLFWwindow* m_WindowHandle;
17 };
18}
#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
Definition OpenGLContext.h:9
void Init() override
Initializes the graphics context.
Definition OpenGLContext.cpp:22
virtual ~OpenGLContext()
Definition OpenGLContext.cpp:18
GLFWwindow * m_WindowHandle
Definition OpenGLContext.h:16
OpenGLContext(GLFWwindow *windowHandle)
Definition OpenGLContext.cpp:11
void SwapBuffers() override
Swaps the front and back buffers.
Definition OpenGLContext.cpp:44
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