Files
Seele/src/Engine/UI/RenderHierarchy.h
T

30 lines
533 B
C++
Raw Normal View History

2021-08-21 18:02:53 +02:00
#pragma once
2021-09-23 10:10:39 +02:00
#include "Elements/Element.h"
2021-08-21 18:02:53 +02:00
namespace Seele
{
namespace UI
{
2021-09-23 10:10:39 +02:00
DECLARE_NAME_REF(Gfx, RenderCommand);
class RenderElement
{
public:
RenderElement();
virtual ~RenderElement();
private:
PElement referencedElement;
Gfx::PRenderCommand renderCommand;
friend class RenderHierarchy;
};
2021-08-21 18:02:53 +02:00
class RenderHierarchy
{
public:
2021-09-23 10:10:39 +02:00
RenderHierarchy();
~RenderHierarchy();
2021-08-21 18:02:53 +02:00
private:
2021-09-23 10:10:39 +02:00
// List of all drawable elements in draw order
Array<RenderElement> drawElements;
2021-08-21 18:02:53 +02:00
};
} // namespace UI
} // namespace Seele