\r
using namespace Dali;\r
\r
-int main(int argc, char** argv)\r
+int DALI_EXPORT_API main(int argc, char** argv)\r
{\r
auto app = Application::New(&argc, &argv, DEMO_THEME_PATH);\r
SceneLoaderExample sceneLoader(app);\r
namespace\r
{\r
\r
-const float ROTATION_SCALE = 0.05f;\r
+const float ROTATION_SCALE = 180.f; // the amount of rotation that a swipe whose length is the width of the screen, causes, in degrees.\r
\r
const float ITEM_HEIGHT = 50.f;\r
\r
Vector2 size{ float(windowSize.GetWidth()), float(windowSize.GetHeight()) };\r
float aspect = size.y / size.x;\r
\r
- size *= ROTATION_SCALE;\r
+ size /= ROTATION_SCALE;\r
\r
Vector2 rotation{ pan.GetDisplacement().x / size.x, pan.GetDisplacement().y / size.y * aspect };\r
\r
- Quaternion q = Quaternion(Radian(rotation.y), Radian(rotation.x), Radian(0.f));\r
+ Quaternion q = Quaternion(Radian(Degree(rotation.y)), Radian(Degree(rotation.x)), Radian(0.f));\r
Quaternion q0 = mScene.GetProperty(Actor::Property::ORIENTATION).Get<Quaternion>();\r
\r
mScene.SetProperty(Actor::Property::ORIENTATION, q * q0);\r