Implementing basic scene tree

This commit is contained in:
Dynamitos
2020-04-15 02:04:42 +02:00
parent 576747c369
commit 3ef8342247
34 changed files with 722 additions and 54 deletions
+5 -1
View File
@@ -2,18 +2,22 @@
#include "RenderPath.h"
namespace Seele
{
DECLARE_REF(Window);
// A view is a part of the window, which can be anything from a viewport to an editor
class View
{
public:
View(Gfx::PGraphics graphics);
View(Gfx::PGraphics graphics, PWindow window, const ViewportCreateInfo& createInfo);
virtual ~View();
void beginFrame();
void render();
void endFrame();
void applyArea(Rect area);
protected:
Gfx::PGraphics graphics;
Gfx::PViewport viewport;
PWindow owner;
PRenderPath renderer;
};