remove useless code
This commit is contained in:
parent
b1fc48d0cd
commit
6368c23170
@ -35,10 +35,6 @@ private:
|
|||||||
|
|
||||||
Renderable * ro_sphere =nullptr;
|
Renderable * ro_sphere =nullptr;
|
||||||
|
|
||||||
SceneNode * sn_sphere =nullptr;
|
|
||||||
|
|
||||||
double last_time;
|
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
||||||
bool InitMaterial()
|
bool InitMaterial()
|
||||||
@ -123,7 +119,7 @@ private:
|
|||||||
|
|
||||||
bool InitScene()
|
bool InitScene()
|
||||||
{
|
{
|
||||||
sn_sphere=Add(ro_sphere,envmap_mi,solid_pipeline);
|
auto sn_sphere=Add(ro_sphere,envmap_mi,solid_pipeline);
|
||||||
sn_sphere->SetLocalMatrix(scale(5,5,5));
|
sn_sphere->SetLocalMatrix(scale(5,5,5));
|
||||||
|
|
||||||
render_root.RefreshMatrix();
|
render_root.RefreshMatrix();
|
||||||
@ -144,8 +140,6 @@ public:
|
|||||||
if(!CameraAppFramework::Init(SCREEN_WIDTH,SCREEN_HEIGHT))
|
if(!CameraAppFramework::Init(SCREEN_WIDTH,SCREEN_HEIGHT))
|
||||||
return(false);
|
return(false);
|
||||||
|
|
||||||
last_time=GetDoubleTime();
|
|
||||||
|
|
||||||
camera->pos=Vector3f(10,10,0);
|
camera->pos=Vector3f(10,10,0);
|
||||||
|
|
||||||
camera_control->SetTarget(Vector3f(0,0,0));
|
camera_control->SetTarget(Vector3f(0,0,0));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user