2020-02-25 00:44:40 +01:00
|
|
|
#pragma once
|
2020-03-02 19:07:49 +01:00
|
|
|
#include "RenderPath.h"
|
|
|
|
|
namespace Seele
|
2020-02-25 00:44:40 +01:00
|
|
|
{
|
2020-03-02 19:07:49 +01:00
|
|
|
// A view is a part of the window, which can be anything from a viewport to an editor
|
|
|
|
|
class View
|
|
|
|
|
{
|
|
|
|
|
public:
|
2020-03-20 01:27:40 +01:00
|
|
|
View(Gfx::PGraphics graphics);
|
2020-03-05 11:43:38 +01:00
|
|
|
virtual ~View();
|
|
|
|
|
void beginFrame();
|
|
|
|
|
void endFrame();
|
|
|
|
|
void applyArea(Rect area);
|
|
|
|
|
protected:
|
2020-03-20 01:27:40 +01:00
|
|
|
Gfx::PGraphics graphics;
|
2020-03-02 19:07:49 +01:00
|
|
|
PRenderPath renderer;
|
|
|
|
|
};
|
|
|
|
|
|
2020-03-08 13:38:40 +01:00
|
|
|
DEFINE_REF(View)
|
2020-03-02 19:07:49 +01:00
|
|
|
}
|