Basic UI quad, yay

This commit is contained in:
Dynamitos committed 2021-09-23 10:10:39 +02:00
1 parent df977110d3
commit 632d120f6d
51 files changed
+579 -187

No files matched your search

+16 -2
View File
@@ -1,15 +1,29 @@
#pragma once
#include "Elements/Element.h"
namespace Seele
{
namespace UI
{
DECLARE_NAME_REF(Gfx, RenderCommand);
class RenderElement
{
public:
RenderElement();
virtual ~RenderElement();
private:
PElement referencedElement;
Gfx::PRenderCommand renderCommand;
friend class RenderHierarchy;
};
class RenderHierarchy
{
public:
RenderHierarchy();
~RenderHierarchy();
private:
// List of all drawable elements in draw order
Array<RenderElement> drawElements;
};
} // namespace UI
} // namespace Seele