updated codes support new MaterialRenderList::Add

This commit is contained in:
hyzboy 2024-07-20 13:15:12 +08:00
parent 898d01ac62
commit 1a15b93e15
2 changed files with 2 additions and 6 deletions

View File

@ -30,7 +30,7 @@ namespace hgl
public:
RenderList(GPUDevice *);
virtual ~RenderList();
virtual ~RenderList()=default;
virtual bool Expend(SceneNode *); ///<展开场景树到渲染列表

View File

@ -18,10 +18,6 @@ namespace hgl
renderable_count=0;
}
RenderList::~RenderList()
{
}
bool RenderList::ExpendNode(SceneNode *sn)
{
if(!sn)return(false);
@ -40,7 +36,7 @@ namespace hgl
mrl_map.Add(mtl,mrl);
}
mrl->Add(ri,sn->GetLocalToWorldMatrix());
mrl->Add(sn);
++renderable_count;
}