Graphics class: use GfxDriver API.
This commit is contained in:
parent
d3debea41a
commit
4dad1a5d75
2 changed files with 14 additions and 20 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue