implementing renderpass and vieport
This commit is contained in:
@@ -1,25 +1,26 @@
|
||||
#pragma once
|
||||
#include "GraphicsResources.h"
|
||||
#include "Window.h"
|
||||
#include "Graphics.h"
|
||||
#include "Containers/Array.h"
|
||||
|
||||
namespace Seele
|
||||
{
|
||||
class WindowManager
|
||||
class WindowManager
|
||||
{
|
||||
public:
|
||||
WindowManager();
|
||||
~WindowManager();
|
||||
void addWindow(const WindowCreateInfo &createInfo);
|
||||
void beginFrame();
|
||||
void endFrame();
|
||||
inline bool isActive() const
|
||||
{
|
||||
public:
|
||||
WindowManager();
|
||||
~WindowManager();
|
||||
void addWindow(const WindowCreateInfo& createInfo);
|
||||
void beginFrame();
|
||||
void endFrame();
|
||||
inline bool isActive() const
|
||||
{
|
||||
return windows.size();
|
||||
}
|
||||
private:
|
||||
Array<PWindow> windows;
|
||||
Gfx::PGraphics graphics;
|
||||
};
|
||||
DEFINE_REF(WindowManager);
|
||||
}
|
||||
return windows.size();
|
||||
}
|
||||
|
||||
private:
|
||||
Array<Gfx::PWindow> windows;
|
||||
Gfx::PGraphics graphics;
|
||||
};
|
||||
DEFINE_REF(WindowManager);
|
||||
} // namespace Seele
|
||||
Reference in New Issue
Block a user