1
0
Fork 0

Graphics class: use GfxDriver API.

This commit is contained in:
Henrik Hautakoski 2022-09-17 12:07:28 +02:00
parent d3debea41a
commit 4dad1a5d75
2 changed files with 14 additions and 20 deletions

View file

@ -2,6 +2,7 @@
#ifndef GRAPHICS_H
#define GRAPHICS_H
#include <Spectre/GfxDriver/GfxDriver.h>
#include <Spectre/Display/Display.h>
namespace sp {
@ -42,12 +43,17 @@ public :
void swapBuffers();
GfxDriver* getDriver();
protected :
int m_width;
int m_height;
Display *m_display;
// Graphics Driver. OpenGL/Vulcan/DirectX etc.
GfxDriver *m_gfxdrv;
};
} // namespace sp