建立CreateComponentInfo结构,用于CreateComponent时传递参数

This commit is contained in:
2025-06-25 02:02:51 +08:00
parent 9e74d19220
commit 52509d6f57
2 changed files with 47 additions and 42 deletions

View File

@@ -106,9 +106,9 @@ namespace hgl
public: //Component 相关
template<typename C,typename ...ARGS>
inline C *CreateComponent(ARGS...args)
inline C *CreateComponent(const graph::CreateComponentInfo *cci,ARGS...args)
{
return render_framework?render_framework->CreateComponent<C>(args...):nullptr; //创建组件
return render_framework?render_framework->CreateComponent<C>(cci,args...):nullptr; //创建组件
}
};//class WorkObject