added StaticMesh.cpp/.h in example, they should move to SceneGraph in future

This commit is contained in:
hyzboy 2024-07-15 01:23:13 +08:00
parent 5855b2eb5b
commit 6571a27f41
6 changed files with 38 additions and 3 deletions

2
CMCore

@ -1 +1 @@
Subproject commit dcbb9ed7a29021cc75bfdd9fb38abaea273257b6 Subproject commit 0f236d9bc06803cce037fb6391c123cc99e81b90

2
CMUtil

@ -1 +1 @@
Subproject commit 39faf8b4751ad890bee3a0f5d827a0c619353c35 Subproject commit 09965c1492755a00015f9f030043002c92edb9a5

View File

@ -14,6 +14,6 @@ CreateProject(01_PlaneGrid3D PlaneGrid3D.cpp)
CreateProject(02_RayPicking RayPicking.cpp) CreateProject(02_RayPicking RayPicking.cpp)
CreateProject(03_MetricCellsGrid MetricCellsGrid.cpp) CreateProject(03_MetricCellsGrid MetricCellsGrid.cpp)
CreateProject(04_Gizmo3DTest GizmoTest.cpp Gizmo3DMove.cpp Gizmo.h GizmoResource.h GizmoResource.cpp) CreateProject(04_Gizmo3DTest GizmoTest.cpp Gizmo3DMove.cpp Gizmo.h GizmoResource.h GizmoResource.cpp StaticMesh.h StaticMesh.cpp)
#CreateProject(03_BlenderAxis BlenderAxis.cpp) #CreateProject(03_BlenderAxis BlenderAxis.cpp)

View File

@ -21,3 +21,18 @@
1 1
*/ */
#include"GizmoResource.h"
VK_NAMESPACE_BEGIN
struct StaticMesh
{
};
namespace
{
}//namespace
VK_NAMESPACE_END

View File

View File

@ -0,0 +1,20 @@
#pragma once
#include<hgl/graph/VKRenderable.h>
#include<hgl/type/SortedSets.h>
VK_NAMESPACE_BEGIN
class StaticMesh
{
RenderResource *rr;
SortedSets<Primitive *> prim_set;
SortedSets<MaterialInstance *> mi_set;
SortedSets<Pipeline *> pipeline_set;
public:
};
VK_NAMESPACE_END