Started declaring graphics resources

This commit is contained in:
Dynamitos committed 2020-03-06 11:32:01 +01:00
1 parent 328edf5196
commit df3ed3c49e
8 files changed
+150 -14

No files matched your search

+3 -2
View File
@@ -2,17 +2,18 @@
#include "RenderPath.h"
namespace Seele
{
class Graphics;
// A view is a part of the window, which can be anything from a viewport to an editor
class View
{
public:
View();
View(Graphics* graphics);
virtual ~View();
virtual void initRenderer() = 0;
void beginFrame();
void endFrame();
void applyArea(Rect area);
protected:
Graphics* graphics;
PRenderPath renderer;
};