[WIP] first version of gizmo move test,,can't RUN.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user