implementing renderpass and vieport
This commit is contained in:
+16
-15
@@ -2,19 +2,20 @@
|
||||
#include "RenderPath.h"
|
||||
namespace Seele
|
||||
{
|
||||
// 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);
|
||||
protected:
|
||||
Gfx::PGraphics graphics;
|
||||
PRenderPath renderer;
|
||||
};
|
||||
// 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);
|
||||
|
||||
DEFINE_REF(View)
|
||||
}
|
||||
protected:
|
||||
Gfx::PGraphics graphics;
|
||||
PRenderPath renderer;
|
||||
};
|
||||
|
||||
DEFINE_REF(View)
|
||||
} // namespace Seele
|
||||
Reference in New Issue
Block a user