Starting implementation of UI framework
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
target_sources(SeeleEngine
|
||||
PRIVATE
|
||||
UIComponent.h
|
||||
UIComponent.cpp
|
||||
UIRenderPath.h
|
||||
UIRenderPath.cpp)
|
||||
@@ -0,0 +1,15 @@
|
||||
#pragma once
|
||||
#include "MinimalEngine.h"
|
||||
namespace Seele
|
||||
{
|
||||
DECLARE_REF(UIRenderPath)
|
||||
class UIComponent
|
||||
{
|
||||
public:
|
||||
UIComponent(PUIRenderPath renderer);
|
||||
virtual ~UIComponent();
|
||||
private:
|
||||
PUIRenderPath renderer;
|
||||
};
|
||||
DEFINE_REF(UIComponent);
|
||||
} // namespace Seele
|
||||
@@ -0,0 +1,19 @@
|
||||
#pragma once
|
||||
#include "Window/RenderPath.h"
|
||||
#include "UIComponent.h"
|
||||
|
||||
namespace Seele
|
||||
{
|
||||
class UIRenderPath : public RenderPath
|
||||
{
|
||||
public:
|
||||
UIRenderPath();
|
||||
virtual ~UIRenderPath();
|
||||
virtual void beginFrame();
|
||||
virtual void render();
|
||||
virtual void endFrame();
|
||||
private:
|
||||
};
|
||||
DEFINE_REF(UIRenderPath);
|
||||
} // namespace Seele
|
||||
|
||||
Reference in New Issue
Block a user