StaticMeshComponent改为MeshComponent

This commit is contained in:
2025-06-15 17:53:15 +08:00
parent ec4125776a
commit 97040176d6
20 changed files with 131 additions and 131 deletions

View File

@@ -7,7 +7,7 @@ VK_NAMESPACE_BEGIN
class SceneNode;
class PrimitiveCreater;
class StaticMeshComponent;
class MeshComponent;
constexpr const COLOR gizmo_color[size_t(GizmoColor::RANGE_SIZE)]=
{
@@ -38,6 +38,6 @@ constexpr const float GIZMO_TWO_AXIS_OFFSET =5.0F;
Mesh *GetGizmoMesh(const GizmoShape &gs,const GizmoColor &);
StaticMeshComponent *CreateGizmoStaticMeshComponent(SceneNode *);
MeshComponent *CreateGizmoMeshComponent(SceneNode *);
VK_NAMESPACE_END

View File

@@ -10,7 +10,7 @@
#include<hgl/graph/VKVertexInputConfig.h>
#include<hgl/graph/FirstPersonCameraControl.h>
#include<hgl/color/Color.h>
#include<hgl/component/StaticMeshComponent.h>
#include<hgl/component/MeshComponent.h>
using namespace hgl;
using namespace hgl::graph;
@@ -84,7 +84,7 @@ private:
if(!ri)
return;
CreateComponent<StaticMeshComponent>(mat,parent_node,ri);
CreateComponent<MeshComponent>(mat,parent_node,ri);
}
bool InitScene()

View File

@@ -11,7 +11,7 @@
#include<hgl/graph/mtl/Material3DCreateConfig.h>
#include<hgl/graph/VertexDataManager.h>
#include<hgl/graph/VKVertexInputConfig.h>
#include<hgl/component/StaticMeshComponent.h>
#include<hgl/component/MeshComponent.h>
using namespace hgl;
using namespace hgl::graph;
@@ -101,7 +101,7 @@ private:
return(nullptr);
}
CreateComponent<StaticMeshComponent>(parent_node,ri);
CreateComponent<MeshComponent>(parent_node,ri);
return ri;
}