1
0
Fork 0

Spectre/Window/Window: refactor out GLContext specific code to its own class (GLWindow)

This commit is contained in:
Henrik Hautakoski 2023-08-23 19:28:24 +02:00
parent 2de3bd93f7
commit b1ccea1397
7 changed files with 120 additions and 55 deletions

View file

@ -3,7 +3,7 @@
#define GRAPHICS_H
#include <Spectre/GfxDriver/GfxDriver.h>
#include <Spectre/Window/Window.h>
#include <Spectre/Window/GLWindow.h>
namespace sp {
@ -45,14 +45,14 @@ public :
GfxDriver* getDriver();
Window* getWindow();
GLWindow* getWindow();
protected :
int m_width;
int m_height;
Window *m_window;
GLWindow *m_window;
// Graphics Driver. OpenGL/Vulcan/DirectX etc.
GfxDriver *m_gfxdrv;