Started declaring graphics resources

This commit is contained in:
Dynamitos
2020-03-06 11:32:01 +01:00
parent 328edf5196
commit df3ed3c49e
8 changed files with 150 additions and 14 deletions
+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;
};