Gizmo资源管理中改为保存MeshComponentData/ComponentDataPtr

This commit is contained in:
2025-06-23 23:53:10 +08:00
parent 5ee42c2ae2
commit 19aee81063
3 changed files with 98 additions and 51 deletions

View File

@@ -1,6 +1,7 @@
#pragma once
#include<hgl/graph/VK.h>
#include<hgl/component/Component.h>
VK_NAMESPACE_BEGIN
@@ -34,7 +35,7 @@ enum class GizmoShape:uint
bool InitGizmoResource(RenderFramework *);
void FreeGizmoResource();
Mesh *GetGizmoMesh(const GizmoShape &shape,const GizmoColor &color);
ComponentDataPtr GetGizmoMeshComponentDataPtr(const GizmoShape &shape,const GizmoColor &color);
SceneNode *GetGizmoMoveNode();
//SceneNode *GetGizmoScaleMesh();