X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=examples%2Ffpp-game%2Fgame-scene.cpp;h=7142c0e434df0ed293286198a5176a41ce7bd91c;hb=2e182925204bf3ef9f2a36cbfbf998e79fbafaf5;hp=03b8e0577e4169d12881317d6bd5dca566ca7265;hpb=f0f39a7447b57c1657abe8a1b49989f0bb050e65;p=platform%2Fcore%2Fuifw%2Fdali-demo.git diff --git a/examples/fpp-game/game-scene.cpp b/examples/fpp-game/game-scene.cpp index 03b8e05..7142c0e 100644 --- a/examples/fpp-game/game-scene.cpp +++ b/examples/fpp-game/game-scene.cpp @@ -153,17 +153,17 @@ bool GameScene::Load(const char *filename) // add all to the stage Stage stage = Stage::GetCurrent(); mRootActor = Actor::New(); - mRootActor.SetAnchorPoint( AnchorPoint::CENTER ); - mRootActor.SetParentOrigin( ParentOrigin::CENTER ); + mRootActor.SetProperty( Actor::Property::ANCHOR_POINT, AnchorPoint::CENTER ); + mRootActor.SetProperty( Actor::Property::PARENT_ORIGIN, ParentOrigin::CENTER ); stage.GetRootLayer().Add( mRootActor ); - mRootActor.SetScale( -1.0, 1.0, 1.0 ); - mRootActor.SetPosition( 0.0, 0.0, 0.0 ); - mRootActor.SetOrientation( Degree( 90 ), Vector3( 1.0, 0.0, 0.0 )); + mRootActor.SetProperty( Actor::Property::SCALE, Vector3( -1.0, 1.0, 1.0 ) ); + mRootActor.SetProperty( Actor::Property::POSITION, Vector3( 0.0, 0.0, 0.0 ) ); + mRootActor.SetProperty( Actor::Property::ORIENTATION, Quaternion( Degree( 90 ), Vector3( 1.0, 0.0, 0.0 ) ) ); for( size_t i = 0; i < mEntities.Size(); ++i ) { Actor actor( mEntities[i]->GetActor() ); - actor.SetAnchorPoint( AnchorPoint::CENTER ); - actor.SetParentOrigin( ParentOrigin::CENTER ); + actor.SetProperty( Actor::Property::ANCHOR_POINT, AnchorPoint::CENTER ); + actor.SetProperty( Actor::Property::PARENT_ORIGIN, ParentOrigin::CENTER ); mRootActor.Add( actor ); mEntities[i]->UpdateRenderer(); }