Graphics is now a global object, instead of a per-window one

This commit is contained in:
HOEGLER Stefan committed 2020-03-15 15:58:01 +01:00
1 parent 30e256d0aa
commit 3b55755f0c
20 files changed
+121 -59

No files matched your search

+2 -2
View File
@@ -8,13 +8,13 @@ namespace Seele {
class Graphics
{
public:
Graphics();
~Graphics();
virtual void init(GraphicsInitializer initializer) = 0;
virtual void beginFrame(void* windowHandle) = 0;
virtual void endFrame(void* windowHandle) = 0;
virtual void* createWindow(const WindowCreateInfo& createInfo) = 0;
protected:
Graphics();
~Graphics();
friend class Window;
};
DEFINE_REF(Graphics);