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

21 lines
381 B
C++
Raw Normal View History

#pragma once
2020-03-02 19:07:49 +01:00
#include "RenderPath.h"
namespace Seele
{
2020-03-06 11:32:01 +01:00
class Graphics;
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-06 11:32:01 +01:00
View(Graphics* graphics);
2020-03-05 11:43:38 +01:00
virtual ~View();
void beginFrame();
void endFrame();
void applyArea(Rect area);
protected:
2020-03-06 11:32:01 +01:00
Graphics* graphics;
2020-03-02 19:07:49 +01:00
PRenderPath renderer;
};
DEFINE_REF(View)
2020-03-02 19:07:49 +01:00
}