move StaticMesh.cpp
This commit is contained in:
@@ -14,6 +14,6 @@ CreateProject(01_PlaneGrid3D PlaneGrid3D.cpp)
|
||||
CreateProject(02_RayPicking RayPicking.cpp)
|
||||
CreateProject(03_MetricCellsGrid MetricCellsGrid.cpp)
|
||||
|
||||
CreateProject(04_Gizmo3DTest GizmoTest.cpp Gizmo3DMove.cpp Gizmo.h GizmoResource.h GizmoResource.cpp StaticMesh.h StaticMesh.cpp)
|
||||
CreateProject(04_Gizmo3DTest GizmoTest.cpp Gizmo3DMove.cpp Gizmo.h GizmoResource.h GizmoResource.cpp)
|
||||
|
||||
#CreateProject(03_BlenderAxis BlenderAxis.cpp)
|
||||
|
@@ -66,7 +66,7 @@ namespace
|
||||
root_node->CreateSubNode(scale(9,1,1),cylinder[0]);
|
||||
|
||||
{
|
||||
TransformMatrix4f tm;
|
||||
Transform tm;
|
||||
|
||||
tm.SetTranslation(Vector3f(0,0,4.5f));
|
||||
root_node->CreateSubNode(tm.GetMatrix(),cylinder[2]); //Z 向上
|
||||
|
@@ -1,30 +0,0 @@
|
||||
#include<hgl/graph/StaticMesh.h>
|
||||
#include<hgl/graph/VKRenderResource.h>
|
||||
|
||||
VK_NAMESPACE_BEGIN
|
||||
|
||||
StaticMesh *StaticMesh::CreateNewObject(RenderResource *rr,SceneNode *node)
|
||||
{
|
||||
if(!node)
|
||||
return(nullptr);
|
||||
|
||||
if(node->IsEmpty())
|
||||
return(nullptr);
|
||||
|
||||
return(new StaticMesh(rr,node));
|
||||
}
|
||||
|
||||
StaticMesh::StaticMesh(RenderResource *r,SceneNode *sn)
|
||||
{
|
||||
rr=r;
|
||||
root_node=sn;
|
||||
}
|
||||
|
||||
StaticMesh::~StaticMesh()
|
||||
{
|
||||
rr->Release(this);
|
||||
|
||||
SAFE_CLEAR(root_node);
|
||||
}
|
||||
|
||||
VK_NAMESPACE_END
|
Reference in New Issue
Block a user