迁移到StaticMeshComponent渲染

This commit is contained in:
2025-06-14 21:05:36 +08:00
parent 92f612f675
commit f9675fc1e5
15 changed files with 140 additions and 141 deletions

View File

@@ -9,13 +9,13 @@ namespace hgl
{
class Mesh;
class MaterialInstance;
class SceneNode;
class StaticMeshComponent;
struct RenderNode:public Comparator<RenderNode>
{
uint index; ///<在MaterialRenderList中的索引
SceneNode * scene_node;
StaticMeshComponent *sm_component; ///<静态网格组件
uint32 l2w_version;
uint32 l2w_index;
@@ -27,6 +27,11 @@ namespace hgl
//该函数位于MaterialRenderList.cpp
const int compare(const RenderNode &)const override;
public:
Mesh *GetMesh()const;
MaterialInstance *GetMaterialInstance()const;
};
using RenderNodeList=ArrayList<RenderNode>;