2021-06-15 15:04:17 +08:00
|
|
|
|
#ifndef HGL_GRAPH_RENDER_NODE_INCLUDE
|
2021-06-10 18:56:23 +08:00
|
|
|
|
#define HGL_GRAPH_RENDER_NODE_INCLUDE
|
|
|
|
|
|
2023-05-07 01:07:26 +08:00
|
|
|
|
#include<hgl/graph/VK.h>
|
2023-06-01 21:25:50 +08:00
|
|
|
|
#include<hgl/type/SortedSets.h>
|
2021-06-10 18:56:23 +08:00
|
|
|
|
namespace hgl
|
|
|
|
|
{
|
|
|
|
|
namespace graph
|
|
|
|
|
{
|
2022-06-24 21:06:38 +08:00
|
|
|
|
class Renderable;
|
2023-06-01 21:25:50 +08:00
|
|
|
|
class MaterialInstance;
|
2021-06-10 18:56:23 +08:00
|
|
|
|
|
2023-04-25 18:08:26 +08:00
|
|
|
|
struct RenderNode
|
|
|
|
|
{
|
2023-05-07 01:07:26 +08:00
|
|
|
|
Matrix4f local_to_world;
|
|
|
|
|
|
|
|
|
|
Renderable *ri;
|
2023-04-25 18:08:26 +08:00
|
|
|
|
};
|
|
|
|
|
|
2023-05-07 01:07:26 +08:00
|
|
|
|
using RenderNodeList=List<RenderNode>;
|
2023-09-20 15:55:14 +08:00
|
|
|
|
|
|
|
|
|
using MaterialInstanceSets=SortedSets<MaterialInstance *>; ///<材质实例集合
|
2023-05-07 01:07:26 +08:00
|
|
|
|
}//namespace graph
|
|
|
|
|
}//namespace hgl
|
2021-06-10 18:56:23 +08:00
|
|
|
|
#endif//HGL_GRAPH_RENDER_NODE_INCLUDE
|