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

This commit is contained in:
HOEGLER Stefan
2020-03-15 15:58:01 +01:00
parent 30e256d0aa
commit 3b55755f0c
20 changed files with 121 additions and 59 deletions
+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);