2020-04-15 02:03:56 +02:00
|
|
|
#pragma once
|
|
|
|
|
#include "GraphicsResources.h"
|
|
|
|
|
#include "View.h"
|
|
|
|
|
|
|
|
|
|
namespace Seele
|
|
|
|
|
{
|
|
|
|
|
// The logical window, with the graphics proxy
|
|
|
|
|
class Window
|
|
|
|
|
{
|
|
|
|
|
public:
|
|
|
|
|
Window(Gfx::PWindow handle);
|
|
|
|
|
~Window();
|
|
|
|
|
void addView(PView view);
|
|
|
|
|
void beginFrame();
|
|
|
|
|
void render();
|
|
|
|
|
void endFrame();
|
|
|
|
|
Gfx::PWindow getGfxHandle();
|
2020-05-05 01:51:13 +02:00
|
|
|
|
2020-04-15 02:03:56 +02:00
|
|
|
private:
|
|
|
|
|
Array<PView> viewports;
|
|
|
|
|
Gfx::PWindow gfxHandle;
|
|
|
|
|
};
|
|
|
|
|
DEFINE_REF(Window);
|
2020-05-05 01:51:13 +02:00
|
|
|
} // namespace Seele
|