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
@@ -6,7 +6,7 @@ namespace Seele
class RenderPath
{
public:
RenderPath(Graphics* graphics);
RenderPath(PGraphics graphics);
virtual ~RenderPath();
virtual void applyArea(Rect area) = 0;
virtual void init() = 0;
@@ -14,7 +14,7 @@ namespace Seele
virtual void render() = 0;
virtual void endFrame() = 0;
protected:
Graphics* graphics;
PGraphics graphics;
Rect area;
};
DEFINE_REF(RenderPath);