From 3ef20b3f1c1e919858860f25f26c8885d364aad0 Mon Sep 17 00:00:00 2001
From: Paul Wisbey
Date: Mon, 5 Sep 2016 10:44:53 +0100
Subject: [PATCH] Port the sparkle effect demo
---
demo/dali-demo.cpp | 1 +
examples/sparkle/sparkle-effect-example.cpp | 568 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
examples/sparkle/sparkle-effect.h | 393 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
resources/images/sparkle_normal_background.png | Bin 0 -> 32234 bytes
resources/images/sparkle_particle.png | Bin 0 -> 1095 bytes
resources/po/as.po | 3 +++
resources/po/de.po | 3 +++
resources/po/en_GB.po | 3 +++
resources/po/en_US.po | 3 +++
resources/po/es.po | 3 +++
resources/po/ko.po | 3 +++
resources/po/ml.po | 5 ++++-
resources/po/ur.po | 3 +++
resources/po/zn_CH.po | 5 ++++-
shared/dali-demo-strings.h | 2 ++
15 files changed, 993 insertions(+), 2 deletions(-)
create mode 100644 examples/sparkle/sparkle-effect-example.cpp
create mode 100644 examples/sparkle/sparkle-effect.h
create mode 100755 resources/images/sparkle_normal_background.png
create mode 100755 resources/images/sparkle_particle.png
diff --git a/demo/dali-demo.cpp b/demo/dali-demo.cpp
index 28b1082..9df0c52 100644
--- a/demo/dali-demo.cpp
+++ b/demo/dali-demo.cpp
@@ -81,6 +81,7 @@ int DALI_EXPORT_API main(int argc, char **argv)
demo.AddExample(Example("mesh-visual.example", DALI_DEMO_STR_TITLE_MESH_VISUAL));
demo.AddExample(Example("primitive-shapes.example", DALI_DEMO_STR_TITLE_PRIMITIVE_SHAPES));
demo.AddExample(Example("styling.example", DALI_DEMO_STR_TITLE_STYLING));
+ demo.AddExample(Example("sparkle.example", DALI_DEMO_STR_TITLE_SPARKLE));
demo.SortAlphabetically( true );
diff --git a/examples/sparkle/sparkle-effect-example.cpp b/examples/sparkle/sparkle-effect-example.cpp
new file mode 100644
index 0000000..1cc465a
--- /dev/null
+++ b/examples/sparkle/sparkle-effect-example.cpp
@@ -0,0 +1,568 @@
+/*
+ * Copyright (c) 2016 Samsung Electronics Co., Ltd.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
+
+#include
+#include
+
+#include
+#include
+#include