StaticMeshComponent改为MeshComponent
This commit is contained in:
@@ -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
|
||||
|
@@ -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()
|
||||
|
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user