X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=examples%2Frendering-textured-cube%2Frendering-textured-cube.cpp;h=d472e6528bd7b8017ffd1d3f56cb76b7de4ab4fb;hb=2e182925204bf3ef9f2a36cbfbf998e79fbafaf5;hp=c2abc59208e6a0baeec09d8ed1d7ae8d6bfe82b0;hpb=4f5450203b57333db6c4b649aa72cf6e796158d9;p=platform%2Fcore%2Fuifw%2Fdali-demo.git diff --git a/examples/rendering-textured-cube/rendering-textured-cube.cpp b/examples/rendering-textured-cube/rendering-textured-cube.cpp index c2abc59..d472e65 100644 --- a/examples/rendering-textured-cube/rendering-textured-cube.cpp +++ b/examples/rendering-textured-cube/rendering-textured-cube.cpp @@ -265,10 +265,10 @@ public: float quarterStageWidth = stage.GetSize().x * 0.25f; mActor = Actor::New(); - mActor.SetAnchorPoint( AnchorPoint::CENTER ); - mActor.SetParentOrigin( ParentOrigin::CENTER ); - mActor.SetPosition( Vector3( 0.0f, 0.0f, 0.0f ) ); - mActor.SetSize( Vector3( quarterStageWidth, quarterStageWidth, quarterStageWidth ) ); + mActor.SetProperty( Actor::Property::ANCHOR_POINT, AnchorPoint::CENTER ); + mActor.SetProperty( Actor::Property::PARENT_ORIGIN, ParentOrigin::CENTER ); + mActor.SetProperty( Actor::Property::POSITION, Vector3( 0.0f, 0.0f, 0.0f ) ); + mActor.SetProperty( Actor::Property::SIZE, Vector3( quarterStageWidth, quarterStageWidth, quarterStageWidth ) ); mActor.AddRenderer( mRenderer ); stage.Add( mActor ); } @@ -297,20 +297,10 @@ private: Animation mAnimation; }; -void RunTest( Application& application ) -{ - TexturedCubeController test( application ); - - application.MainLoop(); -} - -// Entry point for Linux & Tizen applications -// int DALI_EXPORT_API main( int argc, char **argv ) { Application application = Application::New( &argc, &argv ); - - RunTest( application ); - + TexturedCubeController test( application ); + application.MainLoop(); return 0; }