[dali_1.0.38] Merge branch 'tizen'
[platform/core/uifw/dali-demo.git] / examples / animated-shapes / animated-shapes-example.cpp
index b7a5a72..ba34cea 100644 (file)
@@ -18,6 +18,8 @@
 #include <dali/dali.h>
 #include <dali-toolkit/dali-toolkit.h>
 
+#include "shared/view.h"
+
 using namespace Dali;
 
 namespace
@@ -47,11 +49,14 @@ public:
   // The Init signal is received once (only) during the Application lifetime
   void Create( Application& application )
   {
+    DemoHelper::RequestThemeChange();
+
     // Get a handle to the stage
     Stage stage = Stage::GetCurrent();
 
     //Create a view
     mView = Dali::Toolkit::View::New();
+    mView.SetResizePolicy( ResizePolicy::FILL_TO_PARENT, Dimension::ALL_DIMENSIONS );
     stage.Add( mView );
 
     //Set background image for the view
@@ -161,7 +166,7 @@ public:
     k0.Add( 1.0f, Vector3( -radius,  0.0f, 0.0f) );
     animation.AnimateBetween( Property(shader, shader.GetPointPropertyName(10)),k0,AlphaFunctions::EaseInOutSine );
 
-    animation.RotateBy(meshActor,Degree(90.0f), Vector3::ZAXIS );
+    animation.AnimateBy( Property( meshActor, Actor::Property::ORIENTATION ), Quaternion( Radian( Degree(90.0f) ), Vector3::ZAXIS ) );
     animation.SetLooping( true );
     animation.Play();
   }
@@ -342,7 +347,7 @@ public:
     k0.Add( 1.0f, Vector3( -radius*2.0,  0.0f, 0.0f) );
     animation.AnimateBetween( Property(shader, shader.GetPointPropertyName(10)),k0,AlphaFunctions::EaseInOutSine );
 
-    animation.RotateBy(meshActor,Degree(-90.0f), Vector3::ZAXIS );
+    animation.AnimateBy( Property( meshActor, Actor::Property::ORIENTATION ), Quaternion( Radian( Degree(-90.0f) ), Vector3::ZAXIS ) );
     animation.SetLooping( true );
     animation.Play();
   }