supported new Comparator<> and ItemComparator<>

This commit is contained in:
2024-12-12 13:30:11 +08:00
parent dd5a78cbaa
commit 6c160f5c53
8 changed files with 41 additions and 40 deletions

View File

@@ -11,7 +11,7 @@ namespace hgl
class MaterialInstance;
class SceneNode;
struct RenderNode
struct RenderNode:public Comparator<RenderNode>
{
uint index; ///<在MaterialRenderList中的索引
@@ -22,6 +22,11 @@ namespace hgl
Vector3f world_position;
float to_camera_distance;
public:
//该函数位于MaterialRenderList.cpp
const int compare(const RenderNode &)const override;
};
using RenderNodeList=List<RenderNode>;