updated codes support new MaterialRenderList::Add
This commit is contained in:
parent
898d01ac62
commit
1a15b93e15
@ -30,7 +30,7 @@ namespace hgl
|
|||||||
public:
|
public:
|
||||||
|
|
||||||
RenderList(GPUDevice *);
|
RenderList(GPUDevice *);
|
||||||
virtual ~RenderList();
|
virtual ~RenderList()=default;
|
||||||
|
|
||||||
virtual bool Expend(SceneNode *); ///<展开场景树到渲染列表
|
virtual bool Expend(SceneNode *); ///<展开场景树到渲染列表
|
||||||
|
|
||||||
|
@ -18,10 +18,6 @@ namespace hgl
|
|||||||
renderable_count=0;
|
renderable_count=0;
|
||||||
}
|
}
|
||||||
|
|
||||||
RenderList::~RenderList()
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
bool RenderList::ExpendNode(SceneNode *sn)
|
bool RenderList::ExpendNode(SceneNode *sn)
|
||||||
{
|
{
|
||||||
if(!sn)return(false);
|
if(!sn)return(false);
|
||||||
@ -40,7 +36,7 @@ namespace hgl
|
|||||||
mrl_map.Add(mtl,mrl);
|
mrl_map.Add(mtl,mrl);
|
||||||
}
|
}
|
||||||
|
|
||||||
mrl->Add(ri,sn->GetLocalToWorldMatrix());
|
mrl->Add(sn);
|
||||||
|
|
||||||
++renderable_count;
|
++renderable_count;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user