2020-03-02 19:07:49 +01:00
|
|
|
#pragma once
|
|
|
|
|
#include "Graphics.h"
|
|
|
|
|
namespace Seele
|
|
|
|
|
{
|
2020-04-12 15:47:19 +02:00
|
|
|
//A renderpath is a general Renderer for a view.
|
|
|
|
|
class RenderPath
|
|
|
|
|
{
|
|
|
|
|
public:
|
2020-04-15 02:03:56 +02:00
|
|
|
RenderPath(Gfx::PGraphics graphics, Gfx::PViewport target);
|
2020-04-12 15:47:19 +02:00
|
|
|
virtual ~RenderPath();
|
2020-05-05 01:51:13 +02:00
|
|
|
virtual void applyArea(URect area);
|
2020-06-02 11:46:18 +02:00
|
|
|
virtual void init() = 0;
|
2020-04-12 15:47:19 +02:00
|
|
|
virtual void beginFrame() = 0;
|
|
|
|
|
virtual void render() = 0;
|
|
|
|
|
virtual void endFrame() = 0;
|
2020-05-05 01:51:13 +02:00
|
|
|
|
2020-04-12 15:47:19 +02:00
|
|
|
protected:
|
|
|
|
|
Gfx::PGraphics graphics;
|
2020-04-15 02:03:56 +02:00
|
|
|
Gfx::PViewport target;
|
2020-04-12 15:47:19 +02:00
|
|
|
};
|
|
|
|
|
DEFINE_REF(RenderPath);
|
|
|
|
|
} // namespace Seele
|