ui rendering works now

This commit is contained in:
Dynamitos
2022-04-18 18:08:38 +02:00
parent 796271f334
commit 14b816fc3c
25 changed files with 453 additions and 60 deletions
+3 -1
View File
@@ -1,4 +1,6 @@
target_sources(Engine
PRIVATE
Element.h
Element.cpp)
Element.cpp
Panel.h
Panel.cpp)
+1
View File
@@ -1,5 +1,6 @@
#include "Element.h"
#include "UI/System.h"
#include "Graphics/Graphics.h"
using namespace Seele;
using namespace Seele::UI;
-1
View File
@@ -36,7 +36,6 @@ protected:
PSystem system;
PElement parent;
Array<PElement> children;
friend class Layout;
friend class RenderElement;
};
DEFINE_REF(Element)
+15
View File
@@ -0,0 +1,15 @@
#include "Panel.h"
#include "UI/Layout.h"
using namespace Seele;
using namespace Seele::UI;
Panel::Panel()
{
}
Panel::~Panel()
{
}
+4
View File
@@ -5,12 +5,16 @@ namespace Seele
{
namespace UI
{
DECLARE_REF(Layout)
class Panel : Element
{
public:
Panel();
virtual ~Panel();
private:
PLayout activeLayout;
};
DEFINE_REF(Panel);
} // namespace UI
} // namespace Seele