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

21 lines
430 B
C++
Raw Normal View History

2020-03-02 19:07:49 +01:00
#pragma once
#include "Graphics.h"
namespace Seele
{
//A renderpath is a general Renderer for a view.
class RenderPath
{
public:
RenderPath(PGraphics graphics);
2020-03-02 19:07:49 +01:00
virtual ~RenderPath();
2020-03-05 11:43:38 +01:00
virtual void applyArea(Rect area) = 0;
2020-03-02 19:07:49 +01:00
virtual void init() = 0;
virtual void beginFrame() = 0;
virtual void render() = 0;
virtual void endFrame() = 0;
protected:
PGraphics graphics;
2020-03-05 11:43:38 +01:00
Rect area;
2020-03-02 19:07:49 +01:00
};
DEFINE_REF(RenderPath);
2020-03-02 19:07:49 +01:00
}