[WIP] first version of gizmo move test,,can't RUN.

This commit is contained in:
2024-07-29 14:01:10 +08:00
parent 03f7237db3
commit 412ed6f3f2
7 changed files with 110 additions and 65 deletions

View File

@@ -6,6 +6,8 @@ using namespace hgl::graph;
class TestApp:public SceneAppFramework
{
StaticMesh *sm=nullptr;
private:
bool InitGizmo()
@@ -13,6 +15,8 @@ private:
if(!InitGizmoResource(device))
return(false);
sm=GetGizmoMoveStaticMesh();
return(true);
}
@@ -25,6 +29,13 @@ public:
if(!InitGizmo())
return(false);
camera->pos=Vector3f(32,32,32);
camera_control->SetTarget(Vector3f(0,0,0));
camera_control->Refresh();
render_root.RefreshMatrix();
render_list->Expend(sm->GetScene());
return(true);
}