#include <dali/dali.h>
#include <dali-toolkit/dali-toolkit.h>
+#include "shared/view.h"
+
using namespace Dali;
namespace
// 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
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();
}
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();
}