Files
Seele/src/Engine/Graphics/View.h
T

21 lines
380 B
C++
Raw Normal View History

#pragma once
2020-03-02 19:07:49 +01:00
#include "RenderPath.h"
namespace Seele
{
2020-04-12 15:47:19 +02:00
// 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);
virtual ~View();
void beginFrame();
void endFrame();
void applyArea(Rect area);
2020-03-02 19:07:49 +01:00
2020-04-12 15:47:19 +02:00
protected:
Gfx::PGraphics graphics;
PRenderPath renderer;
};
DEFINE_REF(View)
} // namespace Seele