Merge remote-tracking branch 'origin/tizen' into new_text 11/36311/3
authorPaul Wisbey <p.wisbey@samsung.com>
Wed, 4 Mar 2015 18:53:01 +0000 (18:53 +0000)
committerPaul Wisbey <p.wisbey@samsung.com>
Wed, 4 Mar 2015 19:21:03 +0000 (19:21 +0000)
Conflicts:
build/tizen/examples/CMakeLists.txt
demo/dali-demo.cpp
examples/buttons/buttons-example.cpp
examples/item-view/item-view-example.cpp
examples/text-view/text-view-example.cpp

Change-Id: I8816d065edca8e2a3fd37cdcedda4b02735f5007

364 files changed:
README
build/tizen/.gitignore
build/tizen/CMakeLists.txt
build/tizen/builder/CMakeLists.txt [new file with mode: 0644]
build/tizen/examples/CMakeLists.txt
builder/dali-builder.cpp [moved from examples/builder/dali-builder.cpp with 99% similarity]
com.samsung.dali-demo.xml
demo/dali-demo.cpp
demo/dali-table-view.cpp
demo/dali-table-view.h
examples/animated-shapes/animated-shapes-example.cpp [new file with mode: 0644]
examples/blocks/blocks-example.cpp
examples/bubble-effect/bubble-effect-example.cpp [moved from examples/shader-effect/bubble-effect-example.cpp with 99% similarity]
examples/builder/examples.cpp
examples/buttons/buttons-example.cpp
examples/cluster/cluster-example.cpp
examples/cube-transition-effect/cube-transition-effect-example.cpp [moved from examples/transition/cube-transition-effect-example.cpp with 98% similarity]
examples/dissolve-effect/dissolve-effect-example.cpp [moved from examples/shader-effect/dissolve-effect-example.cpp with 98% similarity]
examples/image-scaling-irregular-grid/grid-flags.h [moved from examples/image/image-scaling-irregular-grid/grid-flags.h with 100% similarity]
examples/image-scaling-irregular-grid/image-scaling-irregular-grid-example.cpp [moved from examples/image/image-scaling-irregular-grid/image-scaling-irregular-grid-example.cpp with 99% similarity]
examples/item-view/item-view-example.cpp
examples/logging/logging-example.cpp
examples/magnifier/magnifier-example.cpp
examples/motion-blur/motion-blur-example.cpp [moved from examples/motion/motion-blur-example.cpp with 99% similarity]
examples/motion-stretch/motion-stretch-example.cpp [moved from examples/motion/motion-stretch-example.cpp with 99% similarity]
examples/new-window/new-window-example.cpp
examples/path-animation/path-animation.cpp [new file with mode: 0644]
examples/radial-menu/radial-menu-example.cpp
examples/radial-menu/radial-sweep-view-impl.cpp
examples/refraction-effect/refraction-effect-example.cpp [moved from examples/shader-effect/refraction-effect-example.cpp with 99% similarity]
examples/scroll-view/scroll-view-example.cpp
examples/shadow-bone-lighting/shadow-bone-lighting-example.cpp [moved from examples/shadows/shadow-bone-lighting-example.cpp with 99% similarity]
examples/text-field/edit-layout-impl.cpp [moved from examples/text/edit-layout-impl.cpp with 100% similarity]
examples/text-field/edit-layout-impl.h [moved from examples/text/edit-layout-impl.h with 100% similarity]
examples/text-field/edit-layout.cpp [moved from examples/text/edit-layout.cpp with 100% similarity]
examples/text-field/edit-layout.h [moved from examples/text/edit-layout.h with 100% similarity]
examples/text-field/text-field-example.cpp [moved from examples/text/text-field-example.cpp with 100% similarity]
examples/text-label-multi-language/text-label-multi-language-example.cpp [moved from examples/text/text-label-multi-language-example.cpp with 100% similarity]
examples/text-label-multi-language/vertical-layout-impl.cpp [moved from examples/text/vertical-layout-impl.cpp with 100% similarity]
examples/text-label-multi-language/vertical-layout-impl.h [moved from examples/text/vertical-layout-impl.h with 100% similarity]
examples/text-label-multi-language/vertical-layout.cpp [moved from examples/text/vertical-layout.cpp with 100% similarity]
examples/text-label-multi-language/vertical-layout.h [moved from examples/text/vertical-layout.h with 100% similarity]
examples/text-label/center-layout-impl.cpp [moved from examples/text/center-layout-impl.cpp with 100% similarity]
examples/text-label/center-layout-impl.h [moved from examples/text/center-layout-impl.h with 100% similarity]
examples/text-label/center-layout.cpp [moved from examples/text/center-layout.cpp with 100% similarity]
examples/text-label/center-layout.h [moved from examples/text/center-layout.h with 100% similarity]
examples/text-label/text-label-example.cpp [moved from examples/text/text-label-example.cpp with 100% similarity]
packaging/com.samsung.dali-demo.spec
resources/images/add-meta.sh [moved from demo/images/add-meta.sh with 100% similarity]
resources/images/animation-list.png [moved from demo/images/animation-list.png with 100% similarity]
resources/images/animation-picture-1.png [moved from demo/images/animation-picture-1.png with 100% similarity]
resources/images/animation-picture-2.png [moved from demo/images/animation-picture-2.png with 100% similarity]
resources/images/animation-picture-3.png [moved from demo/images/animation-picture-3.png with 100% similarity]
resources/images/animation-picture-4.png [moved from demo/images/animation-picture-4.png with 100% similarity]
resources/images/animation-picture-5.png [moved from demo/images/animation-picture-5.png with 100% similarity]
resources/images/apache-licence.xmp [moved from demo/images/apache-licence.xmp with 100% similarity]
resources/images/background-1.jpg [moved from demo/images/background-1.jpg with 100% similarity]
resources/images/background-2.jpg [moved from demo/images/background-2.jpg with 100% similarity]
resources/images/background-3.jpg [moved from demo/images/background-3.jpg with 100% similarity]
resources/images/background-4.jpg [moved from demo/images/background-4.jpg with 100% similarity]
resources/images/background-5.jpg [moved from demo/images/background-5.jpg with 100% similarity]
resources/images/background-blocks.jpg [moved from demo/images/background-blocks.jpg with 100% similarity]
resources/images/background-default.png [moved from demo/images/background-default.png with 100% similarity]
resources/images/background-gradient.jpg [moved from demo/images/background-gradient.jpg with 100% similarity]
resources/images/background-magnifier.jpg [moved from demo/images/background-magnifier.jpg with 100% similarity]
resources/images/blocks-ball.png [moved from demo/images/blocks-ball.png with 100% similarity]
resources/images/blocks-brick-1.png [moved from demo/images/blocks-brick-1.png with 100% similarity]
resources/images/blocks-brick-2.png [moved from demo/images/blocks-brick-2.png with 100% similarity]
resources/images/blocks-brick-3.png [moved from demo/images/blocks-brick-3.png with 100% similarity]
resources/images/blocks-brick-4.png [moved from demo/images/blocks-brick-4.png with 100% similarity]
resources/images/blocks-paddle-handle.png [moved from demo/images/blocks-paddle-handle.png with 100% similarity]
resources/images/blocks-paddle.png [moved from demo/images/blocks-paddle.png with 100% similarity]
resources/images/book-landscape-cover-back.jpg [moved from demo/images/book-landscape-cover-back.jpg with 100% similarity]
resources/images/book-landscape-cover.jpg [moved from demo/images/book-landscape-cover.jpg with 100% similarity]
resources/images/book-landscape-p1.jpg [moved from demo/images/book-landscape-p1.jpg with 100% similarity]
resources/images/book-landscape-p2.jpg [moved from demo/images/book-landscape-p2.jpg with 100% similarity]
resources/images/book-landscape-p3.jpg [moved from demo/images/book-landscape-p3.jpg with 100% similarity]
resources/images/book-landscape-p4.jpg [moved from demo/images/book-landscape-p4.jpg with 100% similarity]
resources/images/book-landscape-p5.jpg [moved from demo/images/book-landscape-p5.jpg with 100% similarity]
resources/images/book-landscape-p6.jpg [moved from demo/images/book-landscape-p6.jpg with 100% similarity]
resources/images/book-landscape-p7.jpg [moved from demo/images/book-landscape-p7.jpg with 100% similarity]
resources/images/book-landscape-p8.jpg [moved from demo/images/book-landscape-p8.jpg with 100% similarity]
resources/images/book-portrait-cover.jpg [moved from demo/images/book-portrait-cover.jpg with 100% similarity]
resources/images/book-portrait-p1.jpg [moved from demo/images/book-portrait-p1.jpg with 100% similarity]
resources/images/book-portrait-p2.jpg [moved from demo/images/book-portrait-p2.jpg with 100% similarity]
resources/images/book-portrait-p3.jpg [moved from demo/images/book-portrait-p3.jpg with 100% similarity]
resources/images/book-portrait-p4.jpg [moved from demo/images/book-portrait-p4.jpg with 100% similarity]
resources/images/book-portrait-p5.jpg [moved from demo/images/book-portrait-p5.jpg with 100% similarity]
resources/images/book-portrait-p6.jpg [moved from demo/images/book-portrait-p6.jpg with 100% similarity]
resources/images/book-portrait-p7.jpg [moved from demo/images/book-portrait-p7.jpg with 100% similarity]
resources/images/book-portrait-p8.jpg [moved from demo/images/book-portrait-p8.jpg with 100% similarity]
resources/images/brick-wall.jpg [moved from demo/images/brick-wall.jpg with 100% similarity]
resources/images/bubble-ball.png [moved from demo/images/bubble-ball.png with 100% similarity]
resources/images/button-background.png [moved from demo/images/button-background.png with 100% similarity]
resources/images/button-disabled.9.png [moved from demo/images/button-disabled.9.png with 100% similarity]
resources/images/button-down.9.png [moved from demo/images/button-down.9.png with 100% similarity]
resources/images/button-up.9.png [moved from demo/images/button-up.9.png with 100% similarity]
resources/images/checkbox-selected.png [moved from demo/images/checkbox-selected.png with 100% similarity]
resources/images/checkbox-unselected.png [moved from demo/images/checkbox-unselected.png with 100% similarity]
resources/images/circle.png [moved from demo/images/circle.png with 100% similarity]
resources/images/cluster-background.png [moved from demo/images/cluster-background.png with 100% similarity]
resources/images/cluster-image-frame.png [moved from demo/images/cluster-image-frame.png with 100% similarity]
resources/images/cluster-image-shadow.png [moved from demo/images/cluster-image-shadow.png with 100% similarity]
resources/images/com.samsung.dali-demo.ico [moved from demo/images/com.samsung.dali-demo.ico with 100% similarity]
resources/images/com.samsung.dali-demo.png [moved from demo/images/com.samsung.dali-demo.png with 100% similarity]
resources/images/contacts-add.png [moved from demo/images/contacts-add.png with 100% similarity]
resources/images/contacts-background.png [moved from demo/images/contacts-background.png with 100% similarity]
resources/images/contacts-circle.png [moved from demo/images/contacts-circle.png with 100% similarity]
resources/images/contacts-email.png [moved from demo/images/contacts-email.png with 100% similarity]
resources/images/contacts-home.png [moved from demo/images/contacts-home.png with 100% similarity]
resources/images/contacts-image.png [moved from demo/images/contacts-image.png with 100% similarity]
resources/images/contacts-main.png [moved from demo/images/contacts-main.png with 100% similarity]
resources/images/contacts-messenger.png [moved from demo/images/contacts-messenger.png with 100% similarity]
resources/images/contacts-mobile.png [moved from demo/images/contacts-mobile.png with 100% similarity]
resources/images/contacts-plain.png [moved from demo/images/contacts-plain.png with 100% similarity]
resources/images/contacts-text.png [moved from demo/images/contacts-text.png with 100% similarity]
resources/images/curve-left.png [moved from demo/images/curve-left.png with 100% similarity]
resources/images/curve-middle.png [moved from demo/images/curve-middle.png with 100% similarity]
resources/images/curve-right.png [moved from demo/images/curve-right.png with 100% similarity]
resources/images/dali-logo.png [moved from demo/images/dali-logo.png with 100% similarity]
resources/images/frame-128x128.png [moved from demo/images/frame-128x128.png with 100% similarity]
resources/images/gallery-large-1.jpg [moved from demo/images/gallery-large-1.jpg with 100% similarity]
resources/images/gallery-large-10.jpg [moved from demo/images/gallery-large-10.jpg with 100% similarity]
resources/images/gallery-large-11.jpg [moved from demo/images/gallery-large-11.jpg with 100% similarity]
resources/images/gallery-large-12.jpg [moved from demo/images/gallery-large-12.jpg with 100% similarity]
resources/images/gallery-large-13.jpg [moved from demo/images/gallery-large-13.jpg with 100% similarity]
resources/images/gallery-large-14.jpg [moved from demo/images/gallery-large-14.jpg with 100% similarity]
resources/images/gallery-large-14.wbmp [moved from demo/images/gallery-large-14.wbmp with 100% similarity]
resources/images/gallery-large-15.jpg [moved from demo/images/gallery-large-15.jpg with 100% similarity]
resources/images/gallery-large-16.jpg [moved from demo/images/gallery-large-16.jpg with 100% similarity]
resources/images/gallery-large-17.jpg [moved from demo/images/gallery-large-17.jpg with 100% similarity]
resources/images/gallery-large-18.jpg [moved from demo/images/gallery-large-18.jpg with 100% similarity]
resources/images/gallery-large-19.jpg [moved from demo/images/gallery-large-19.jpg with 100% similarity]
resources/images/gallery-large-2.jpg [moved from demo/images/gallery-large-2.jpg with 100% similarity]
resources/images/gallery-large-20.jpg [moved from demo/images/gallery-large-20.jpg with 100% similarity]
resources/images/gallery-large-21.jpg [moved from demo/images/gallery-large-21.jpg with 100% similarity]
resources/images/gallery-large-3.jpg [moved from demo/images/gallery-large-3.jpg with 100% similarity]
resources/images/gallery-large-4.jpg [moved from demo/images/gallery-large-4.jpg with 100% similarity]
resources/images/gallery-large-5.jpg [moved from demo/images/gallery-large-5.jpg with 100% similarity]
resources/images/gallery-large-6.jpg [moved from demo/images/gallery-large-6.jpg with 100% similarity]
resources/images/gallery-large-7.jpg [moved from demo/images/gallery-large-7.jpg with 100% similarity]
resources/images/gallery-large-8.jpg [moved from demo/images/gallery-large-8.jpg with 100% similarity]
resources/images/gallery-large-9.jpg [moved from demo/images/gallery-large-9.jpg with 100% similarity]
resources/images/gallery-medium-1.jpg [moved from demo/images/gallery-medium-1.jpg with 100% similarity]
resources/images/gallery-medium-10.jpg [moved from demo/images/gallery-medium-10.jpg with 100% similarity]
resources/images/gallery-medium-11.jpg [moved from demo/images/gallery-medium-11.jpg with 100% similarity]
resources/images/gallery-medium-12.jpg [moved from demo/images/gallery-medium-12.jpg with 100% similarity]
resources/images/gallery-medium-13.jpg [moved from demo/images/gallery-medium-13.jpg with 100% similarity]
resources/images/gallery-medium-14.jpg [moved from demo/images/gallery-medium-14.jpg with 100% similarity]
resources/images/gallery-medium-15.jpg [moved from demo/images/gallery-medium-15.jpg with 100% similarity]
resources/images/gallery-medium-16.jpg [moved from demo/images/gallery-medium-16.jpg with 100% similarity]
resources/images/gallery-medium-17.jpg [moved from demo/images/gallery-medium-17.jpg with 100% similarity]
resources/images/gallery-medium-18.jpg [moved from demo/images/gallery-medium-18.jpg with 100% similarity]
resources/images/gallery-medium-19.jpg [moved from demo/images/gallery-medium-19.jpg with 100% similarity]
resources/images/gallery-medium-2.jpg [moved from demo/images/gallery-medium-2.jpg with 100% similarity]
resources/images/gallery-medium-20.jpg [moved from demo/images/gallery-medium-20.jpg with 100% similarity]
resources/images/gallery-medium-21.jpg [moved from demo/images/gallery-medium-21.jpg with 100% similarity]
resources/images/gallery-medium-22.jpg [moved from demo/images/gallery-medium-22.jpg with 100% similarity]
resources/images/gallery-medium-23.jpg [moved from demo/images/gallery-medium-23.jpg with 100% similarity]
resources/images/gallery-medium-24.jpg [moved from demo/images/gallery-medium-24.jpg with 100% similarity]
resources/images/gallery-medium-25.jpg [moved from demo/images/gallery-medium-25.jpg with 100% similarity]
resources/images/gallery-medium-26.jpg [moved from demo/images/gallery-medium-26.jpg with 100% similarity]
resources/images/gallery-medium-27.jpg [moved from demo/images/gallery-medium-27.jpg with 100% similarity]
resources/images/gallery-medium-28.jpg [moved from demo/images/gallery-medium-28.jpg with 100% similarity]
resources/images/gallery-medium-29.jpg [moved from demo/images/gallery-medium-29.jpg with 100% similarity]
resources/images/gallery-medium-3.jpg [moved from demo/images/gallery-medium-3.jpg with 100% similarity]
resources/images/gallery-medium-30.jpg [moved from demo/images/gallery-medium-30.jpg with 100% similarity]
resources/images/gallery-medium-31.jpg [moved from demo/images/gallery-medium-31.jpg with 100% similarity]
resources/images/gallery-medium-32.jpg [moved from demo/images/gallery-medium-32.jpg with 100% similarity]
resources/images/gallery-medium-33.jpg [moved from demo/images/gallery-medium-33.jpg with 100% similarity]
resources/images/gallery-medium-34.jpg [moved from demo/images/gallery-medium-34.jpg with 100% similarity]
resources/images/gallery-medium-35.jpg [moved from demo/images/gallery-medium-35.jpg with 100% similarity]
resources/images/gallery-medium-36.jpg [moved from demo/images/gallery-medium-36.jpg with 100% similarity]
resources/images/gallery-medium-37.jpg [moved from demo/images/gallery-medium-37.jpg with 100% similarity]
resources/images/gallery-medium-38.jpg [moved from demo/images/gallery-medium-38.jpg with 100% similarity]
resources/images/gallery-medium-39.jpg [moved from demo/images/gallery-medium-39.jpg with 100% similarity]
resources/images/gallery-medium-4.jpg [moved from demo/images/gallery-medium-4.jpg with 100% similarity]
resources/images/gallery-medium-40.jpg [moved from demo/images/gallery-medium-40.jpg with 100% similarity]
resources/images/gallery-medium-41.jpg [moved from demo/images/gallery-medium-41.jpg with 100% similarity]
resources/images/gallery-medium-42.jpg [moved from demo/images/gallery-medium-42.jpg with 100% similarity]
resources/images/gallery-medium-43.jpg [moved from demo/images/gallery-medium-43.jpg with 100% similarity]
resources/images/gallery-medium-44.jpg [moved from demo/images/gallery-medium-44.jpg with 100% similarity]
resources/images/gallery-medium-45.jpg [moved from demo/images/gallery-medium-45.jpg with 100% similarity]
resources/images/gallery-medium-46.jpg [moved from demo/images/gallery-medium-46.jpg with 100% similarity]
resources/images/gallery-medium-47.jpg [moved from demo/images/gallery-medium-47.jpg with 100% similarity]
resources/images/gallery-medium-48.jpg [moved from demo/images/gallery-medium-48.jpg with 100% similarity]
resources/images/gallery-medium-49.jpg [moved from demo/images/gallery-medium-49.jpg with 100% similarity]
resources/images/gallery-medium-5.jpg [moved from demo/images/gallery-medium-5.jpg with 100% similarity]
resources/images/gallery-medium-50.jpg [moved from demo/images/gallery-medium-50.jpg with 100% similarity]
resources/images/gallery-medium-51.jpg [moved from demo/images/gallery-medium-51.jpg with 100% similarity]
resources/images/gallery-medium-52.jpg [moved from demo/images/gallery-medium-52.jpg with 100% similarity]
resources/images/gallery-medium-53.jpg [moved from demo/images/gallery-medium-53.jpg with 100% similarity]
resources/images/gallery-medium-6.jpg [moved from demo/images/gallery-medium-6.jpg with 100% similarity]
resources/images/gallery-medium-7.jpg [moved from demo/images/gallery-medium-7.jpg with 100% similarity]
resources/images/gallery-medium-8.jpg [moved from demo/images/gallery-medium-8.jpg with 100% similarity]
resources/images/gallery-medium-9.jpg [moved from demo/images/gallery-medium-9.jpg with 100% similarity]
resources/images/gallery-small-1.jpg [moved from demo/images/gallery-small-1.jpg with 100% similarity]
resources/images/gallery-small-10.jpg [moved from demo/images/gallery-small-10.jpg with 100% similarity]
resources/images/gallery-small-11.jpg [moved from demo/images/gallery-small-11.jpg with 100% similarity]
resources/images/gallery-small-12.jpg [moved from demo/images/gallery-small-12.jpg with 100% similarity]
resources/images/gallery-small-13.jpg [moved from demo/images/gallery-small-13.jpg with 100% similarity]
resources/images/gallery-small-14.jpg [moved from demo/images/gallery-small-14.jpg with 100% similarity]
resources/images/gallery-small-15.jpg [moved from demo/images/gallery-small-15.jpg with 100% similarity]
resources/images/gallery-small-16.jpg [moved from demo/images/gallery-small-16.jpg with 100% similarity]
resources/images/gallery-small-17.jpg [moved from demo/images/gallery-small-17.jpg with 100% similarity]
resources/images/gallery-small-18.jpg [moved from demo/images/gallery-small-18.jpg with 100% similarity]
resources/images/gallery-small-19.jpg [moved from demo/images/gallery-small-19.jpg with 100% similarity]
resources/images/gallery-small-2.jpg [moved from demo/images/gallery-small-2.jpg with 100% similarity]
resources/images/gallery-small-20.jpg [moved from demo/images/gallery-small-20.jpg with 100% similarity]
resources/images/gallery-small-21.jpg [moved from demo/images/gallery-small-21.jpg with 100% similarity]
resources/images/gallery-small-22.jpg [moved from demo/images/gallery-small-22.jpg with 100% similarity]
resources/images/gallery-small-23.jpg [moved from demo/images/gallery-small-23.jpg with 100% similarity]
resources/images/gallery-small-24.jpg [moved from demo/images/gallery-small-24.jpg with 100% similarity]
resources/images/gallery-small-25.jpg [moved from demo/images/gallery-small-25.jpg with 100% similarity]
resources/images/gallery-small-26.jpg [moved from demo/images/gallery-small-26.jpg with 100% similarity]
resources/images/gallery-small-27.jpg [moved from demo/images/gallery-small-27.jpg with 100% similarity]
resources/images/gallery-small-28.jpg [moved from demo/images/gallery-small-28.jpg with 100% similarity]
resources/images/gallery-small-29.jpg [moved from demo/images/gallery-small-29.jpg with 100% similarity]
resources/images/gallery-small-3.jpg [moved from demo/images/gallery-small-3.jpg with 100% similarity]
resources/images/gallery-small-30.jpg [moved from demo/images/gallery-small-30.jpg with 100% similarity]
resources/images/gallery-small-31.jpg [moved from demo/images/gallery-small-31.jpg with 100% similarity]
resources/images/gallery-small-32.jpg [moved from demo/images/gallery-small-32.jpg with 100% similarity]
resources/images/gallery-small-33.jpg [moved from demo/images/gallery-small-33.jpg with 100% similarity]
resources/images/gallery-small-34.jpg [moved from demo/images/gallery-small-34.jpg with 100% similarity]
resources/images/gallery-small-35.jpg [moved from demo/images/gallery-small-35.jpg with 100% similarity]
resources/images/gallery-small-36.jpg [moved from demo/images/gallery-small-36.jpg with 100% similarity]
resources/images/gallery-small-37.jpg [moved from demo/images/gallery-small-37.jpg with 100% similarity]
resources/images/gallery-small-38.jpg [moved from demo/images/gallery-small-38.jpg with 100% similarity]
resources/images/gallery-small-39.jpg [moved from demo/images/gallery-small-39.jpg with 100% similarity]
resources/images/gallery-small-4.jpg [moved from demo/images/gallery-small-4.jpg with 100% similarity]
resources/images/gallery-small-40.jpg [moved from demo/images/gallery-small-40.jpg with 100% similarity]
resources/images/gallery-small-41.jpg [moved from demo/images/gallery-small-41.jpg with 100% similarity]
resources/images/gallery-small-42.jpg [moved from demo/images/gallery-small-42.jpg with 100% similarity]
resources/images/gallery-small-43.jpg [moved from demo/images/gallery-small-43.jpg with 100% similarity]
resources/images/gallery-small-44.jpg [moved from demo/images/gallery-small-44.jpg with 100% similarity]
resources/images/gallery-small-45.jpg [moved from demo/images/gallery-small-45.jpg with 100% similarity]
resources/images/gallery-small-46.jpg [moved from demo/images/gallery-small-46.jpg with 100% similarity]
resources/images/gallery-small-47.jpg [moved from demo/images/gallery-small-47.jpg with 100% similarity]
resources/images/gallery-small-48.jpg [moved from demo/images/gallery-small-48.jpg with 100% similarity]
resources/images/gallery-small-49.jpg [moved from demo/images/gallery-small-49.jpg with 100% similarity]
resources/images/gallery-small-5.jpg [moved from demo/images/gallery-small-5.jpg with 100% similarity]
resources/images/gallery-small-50.jpg [moved from demo/images/gallery-small-50.jpg with 100% similarity]
resources/images/gallery-small-51.jpg [moved from demo/images/gallery-small-51.jpg with 100% similarity]
resources/images/gallery-small-52.jpg [moved from demo/images/gallery-small-52.jpg with 100% similarity]
resources/images/gallery-small-53.jpg [moved from demo/images/gallery-small-53.jpg with 100% similarity]
resources/images/gallery-small-6.jpg [moved from demo/images/gallery-small-6.jpg with 100% similarity]
resources/images/gallery-small-7.jpg [moved from demo/images/gallery-small-7.jpg with 100% similarity]
resources/images/gallery-small-8.jpg [moved from demo/images/gallery-small-8.jpg with 100% similarity]
resources/images/gallery-small-9.jpg [moved from demo/images/gallery-small-9.jpg with 100% similarity]
resources/images/icon-change.png [moved from demo/images/icon-change.png with 100% similarity]
resources/images/icon-cluster-carousel.png [moved from demo/images/icon-cluster-carousel.png with 100% similarity]
resources/images/icon-cluster-none.png [moved from demo/images/icon-cluster-none.png with 100% similarity]
resources/images/icon-cluster-sphere.png [moved from demo/images/icon-cluster-sphere.png with 100% similarity]
resources/images/icon-cluster-wobble.png [moved from demo/images/icon-cluster-wobble.png with 100% similarity]
resources/images/icon-delete.png [moved from demo/images/icon-delete.png with 100% similarity]
resources/images/icon-edit.png [moved from demo/images/icon-edit.png with 100% similarity]
resources/images/icon-effect-cross.png [moved from demo/images/icon-effect-cross.png with 100% similarity]
resources/images/icon-effect-fold.png [moved from demo/images/icon-effect-fold.png with 100% similarity]
resources/images/icon-effect-wave.png [moved from demo/images/icon-effect-wave.png with 100% similarity]
resources/images/icon-effects-off.png [moved from demo/images/icon-effects-off.png with 100% similarity]
resources/images/icon-effects-on.png [moved from demo/images/icon-effects-on.png with 100% similarity]
resources/images/icon-highp.png [moved from demo/images/icon-highp.png with 100% similarity]
resources/images/icon-insert.png [moved from demo/images/icon-insert.png with 100% similarity]
resources/images/icon-item-view-layout-depth.png [moved from demo/images/icon-item-view-layout-depth.png with 100% similarity]
resources/images/icon-item-view-layout-grid.png [moved from demo/images/icon-item-view-layout-grid.png with 100% similarity]
resources/images/icon-item-view-layout-spiral.png [moved from demo/images/icon-item-view-layout-spiral.png with 100% similarity]
resources/images/icon-mediump.png [moved from demo/images/icon-mediump.png with 100% similarity]
resources/images/icon-play.png [moved from demo/images/icon-play.png with 100% similarity]
resources/images/icon-replace.png [moved from demo/images/icon-replace.png with 100% similarity]
resources/images/icon-reset.png [moved from demo/images/icon-reset.png with 100% similarity]
resources/images/icon-scroll-view-carousel.png [moved from demo/images/icon-scroll-view-carousel.png with 100% similarity]
resources/images/icon-scroll-view-depth.png [moved from demo/images/icon-scroll-view-depth.png with 100% similarity]
resources/images/icon-scroll-view-inner-cube.png [moved from demo/images/icon-scroll-view-inner-cube.png with 100% similarity]
resources/images/icon-scroll-view-outer-cube.png [moved from demo/images/icon-scroll-view-outer-cube.png with 100% similarity]
resources/images/icon-scroll-view-spiral.png [moved from demo/images/icon-scroll-view-spiral.png with 100% similarity]
resources/images/icon-stop.png [moved from demo/images/icon-stop.png with 100% similarity]
resources/images/image-with-border-1.jpg [moved from demo/images/image-with-border-1.jpg with 100% similarity]
resources/images/image-with-border-2.jpg [moved from demo/images/image-with-border-2.jpg with 100% similarity]
resources/images/image-with-border-3.jpg [moved from demo/images/image-with-border-3.jpg with 100% similarity]
resources/images/image-with-border-4.jpg [moved from demo/images/image-with-border-4.jpg with 100% similarity]
resources/images/image-with-border-5.jpg [moved from demo/images/image-with-border-5.jpg with 100% similarity]
resources/images/item-background-alpha.png [moved from demo/images/item-background-alpha.png with 100% similarity]
resources/images/item-background.png [moved from demo/images/item-background.png with 100% similarity]
resources/images/item-select-check.png [moved from demo/images/item-select-check.png with 100% similarity]
resources/images/landscape_screen_primitive_shapes.gif [moved from demo/images/landscape_screen_primitive_shapes.gif with 100% similarity]
resources/images/layer1.png [moved from demo/images/layer1.png with 100% similarity]
resources/images/layer2.png [moved from demo/images/layer2.png with 100% similarity]
resources/images/layer3.png [moved from demo/images/layer3.png with 100% similarity]
resources/images/layer4.png [moved from demo/images/layer4.png with 100% similarity]
resources/images/music-libray-arrow.png [moved from demo/images/music-libray-arrow.png with 100% similarity]
resources/images/music-libray-circle.png [moved from demo/images/music-libray-circle.png with 100% similarity]
resources/images/music-libray-foxtrot-oscar.png [moved from demo/images/music-libray-foxtrot-oscar.png with 100% similarity]
resources/images/music-libray-main-screen.png [moved from demo/images/music-libray-main-screen.png with 100% similarity]
resources/images/music-libray-menu.png [moved from demo/images/music-libray-menu.png with 100% similarity]
resources/images/music-libray-pause.png [moved from demo/images/music-libray-pause.png with 100% similarity]
resources/images/music-libray-record-cover.png [moved from demo/images/music-libray-record-cover.png with 100% similarity]
resources/images/music-libray-rectangle.png [moved from demo/images/music-libray-rectangle.png with 100% similarity]
resources/images/music-libray-star.png [moved from demo/images/music-libray-star.png with 100% similarity]
resources/images/music-libray-the-solars.png [moved from demo/images/music-libray-the-solars.png with 100% similarity]
resources/images/music-libray-triangle.png [moved from demo/images/music-libray-triangle.png with 100% similarity]
resources/images/people-medium-1.jpg [moved from demo/images/people-medium-1.jpg with 100% similarity]
resources/images/people-medium-10.jpg [moved from demo/images/people-medium-10.jpg with 100% similarity]
resources/images/people-medium-11.jpg [moved from demo/images/people-medium-11.jpg with 100% similarity]
resources/images/people-medium-12.jpg [moved from demo/images/people-medium-12.jpg with 100% similarity]
resources/images/people-medium-13.jpg [moved from demo/images/people-medium-13.jpg with 100% similarity]
resources/images/people-medium-14.jpg [moved from demo/images/people-medium-14.jpg with 100% similarity]
resources/images/people-medium-15.jpg [moved from demo/images/people-medium-15.jpg with 100% similarity]
resources/images/people-medium-16.jpg [moved from demo/images/people-medium-16.jpg with 100% similarity]
resources/images/people-medium-2.jpg [moved from demo/images/people-medium-2.jpg with 100% similarity]
resources/images/people-medium-3.jpg [moved from demo/images/people-medium-3.jpg with 100% similarity]
resources/images/people-medium-4.jpg [moved from demo/images/people-medium-4.jpg with 100% similarity]
resources/images/people-medium-5.jpg [moved from demo/images/people-medium-5.jpg with 100% similarity]
resources/images/people-medium-6.jpg [moved from demo/images/people-medium-6.jpg with 100% similarity]
resources/images/people-medium-7.jpg [moved from demo/images/people-medium-7.jpg with 100% similarity]
resources/images/people-medium-8.jpg [moved from demo/images/people-medium-8.jpg with 100% similarity]
resources/images/people-medium-9.jpg [moved from demo/images/people-medium-9.jpg with 100% similarity]
resources/images/people-small-1.jpg [moved from demo/images/people-small-1.jpg with 100% similarity]
resources/images/people-small-10.jpg [moved from demo/images/people-small-10.jpg with 100% similarity]
resources/images/people-small-11.jpg [moved from demo/images/people-small-11.jpg with 100% similarity]
resources/images/people-small-12.jpg [moved from demo/images/people-small-12.jpg with 100% similarity]
resources/images/people-small-13.jpg [moved from demo/images/people-small-13.jpg with 100% similarity]
resources/images/people-small-14.jpg [moved from demo/images/people-small-14.jpg with 100% similarity]
resources/images/people-small-15.jpg [moved from demo/images/people-small-15.jpg with 100% similarity]
resources/images/people-small-16.jpg [moved from demo/images/people-small-16.jpg with 100% similarity]
resources/images/people-small-2.jpg [moved from demo/images/people-small-2.jpg with 100% similarity]
resources/images/people-small-3.jpg [moved from demo/images/people-small-3.jpg with 100% similarity]
resources/images/people-small-4.jpg [moved from demo/images/people-small-4.jpg with 100% similarity]
resources/images/people-small-5.jpg [moved from demo/images/people-small-5.jpg with 100% similarity]
resources/images/people-small-6.jpg [moved from demo/images/people-small-6.jpg with 100% similarity]
resources/images/people-small-7.jpg [moved from demo/images/people-small-7.jpg with 100% similarity]
resources/images/people-small-8.jpg [moved from demo/images/people-small-8.jpg with 100% similarity]
resources/images/people-small-9.jpg [moved from demo/images/people-small-9.jpg with 100% similarity]
resources/images/portrait_screen_primitive_shapes.gif [moved from demo/images/portrait_screen_primitive_shapes.gif with 100% similarity]
resources/images/spot_button_off.png [moved from demo/images/spot_button_off.png with 100% similarity]
resources/images/spot_button_on.png [moved from demo/images/spot_button_on.png with 100% similarity]
resources/images/spot_jelly_off.png [moved from demo/images/spot_jelly_off.png with 100% similarity]
resources/images/spot_jelly_on.png [moved from demo/images/spot_jelly_on.png with 100% similarity]
resources/images/square_primitive_shapes.bmp [moved from demo/images/square_primitive_shapes.bmp with 100% similarity]
resources/images/top-bar.png [moved from demo/images/top-bar.png with 100% similarity]
resources/models/Album-Cute-COVER-small.png [moved from demo/models/Album-Cute-COVER-small.png with 100% similarity]
resources/models/AlbumCute.dae [moved from demo/models/AlbumCute.dae with 100% similarity]
resources/models/AlbumCute.dali-bin [moved from demo/models/AlbumCute.dali-bin with 100% similarity]
resources/models/Kitten.png [moved from demo/models/Kitten.png with 100% similarity]
resources/models/surface_pattern_v01.obj [moved from demo/models/surface_pattern_v01.obj with 100% similarity]
resources/models/surface_pattern_v02.obj [moved from demo/models/surface_pattern_v02.obj with 100% similarity]
resources/scripts/animated-buttons.json [moved from demo/scripts/animated-buttons.json with 100% similarity]
resources/scripts/animated-colors.json [moved from demo/scripts/animated-colors.json with 100% similarity]
resources/scripts/animation.json [moved from demo/scripts/animation.json with 100% similarity]
resources/scripts/background-color.json [moved from demo/scripts/background-color.json with 100% similarity]
resources/scripts/button.json [moved from demo/scripts/button.json with 100% similarity]
resources/scripts/choreography.json [moved from demo/scripts/choreography.json with 100% similarity]
resources/scripts/contacts.json [moved from demo/scripts/contacts.json with 100% similarity]
resources/scripts/formatted-text.json [moved from demo/scripts/formatted-text.json with 100% similarity]
resources/scripts/gallery.json [moved from demo/scripts/gallery.json with 100% similarity]
resources/scripts/hello-world.json [moved from demo/scripts/hello-world.json with 100% similarity]
resources/scripts/music-library.json [moved from demo/scripts/music-library.json with 100% similarity]
resources/scripts/navigation.json [moved from demo/scripts/navigation.json with 100% similarity]
resources/scripts/slider-test-style.json [moved from demo/scripts/slider-test-style.json with 100% similarity]
resources/scripts/slider.json [moved from demo/scripts/slider.json with 100% similarity]
resources/scripts/super-blur-view.json [moved from demo/scripts/super-blur-view.json with 100% similarity]
resources/scripts/table-view.json [moved from demo/scripts/table-view.json with 100% similarity]
resources/scripts/timing.json [moved from demo/scripts/timing.json with 100% similarity]
shared/dali-demo-strings.h [moved from examples/shared/dali-demo-strings.h with 100% similarity]
shared/view.h [moved from examples/shared/view.h with 97% similarity]

diff --git a/README b/README
index 5187f08..e1c2d35 100644 (file)
--- a/README
+++ b/README
@@ -7,7 +7,7 @@ T.O.C.
  2.   Building for Ubuntu desktop
  2.1. Minimum Requirements
  2.2. Building the Repository
-
+ 3.   Creating an example
 
 
 1. GBS Builds
@@ -46,3 +46,14 @@ Then run the following commands:
  cmake -DCMAKE_INSTALL_PREFIX=$DESKTOP_PREFIX .
  make install -j8
 
+
+
+3. Creating an example
+======================
+
+ - Make a directory in the "examples" directory. Only one example will be created per directory.
+ - The executable installed will have a ".example" appended to it, e.g. a "blocks" directory produces "blocks.example".
+ - Add all source files for the required example in this directory.
+ - Modify "com.samsung.dali-demo.xml" to include your example so that it can be launched on target.
+ - No changes are required to the make system as long as the above is followed, your example will be automatically built & installed.
+
index 1712ae7..bc56788 100644 (file)
@@ -8,6 +8,5 @@ install_manifest.txt
 /demo/dali-performance
 /demo/performance.core
 /docs/dali.doxy
+/builder/dali-builder
 /examples/*.demo
-/performance/dali-performance
-/performance/performance.*
index 79b2b4f..5550f8e 100644 (file)
@@ -16,9 +16,10 @@ ELSE()
         SET(BINDIR ${PREFIX}/bin)
 ENDIF()
 
-SET(LOCAL_IMAGES_DIR ${ROOT_SRC_DIR}/demo/images)
-SET(LOCAL_MODELS_DIR ${ROOT_SRC_DIR}/demo/models)
-SET(LOCAL_SCRIPTS_DIR ${ROOT_SRC_DIR}/demo/scripts)
+SET(RESOURCE_DIR ${ROOT_SRC_DIR}/resources)
+SET(LOCAL_IMAGES_DIR ${RESOURCE_DIR}/images)
+SET(LOCAL_MODELS_DIR ${RESOURCE_DIR}/models)
+SET(LOCAL_SCRIPTS_DIR ${RESOURCE_DIR}/scripts)
 
 SET(IMAGES_DIR ${APP_DATA_DIR}/images/)
 SET(MODELS_DIR ${APP_DATA_DIR}/models/)
@@ -44,17 +45,17 @@ FILE(GLOB LOCAL_IMAGES_WBMP RELATIVE "${LOCAL_IMAGES_DIR}" "${LOCAL_IMAGES_DIR}/
 
 SET(LOCAL_IMAGES_LIST ${LOCAL_IMAGES_PNG};${LOCAL_IMAGES_JPG};${LOCAL_IMAGES_GIF};${LOCAL_IMAGES_BMP};${LOCAL_IMAGES_ICO};${LOCAL_IMAGES_WBMP})
 FOREACH(flag ${LOCAL_IMAGES_LIST})
-        INSTALL(FILES ../../demo/images/${flag} DESTINATION ${IMAGES_DIR})
+        INSTALL(FILES ${LOCAL_IMAGES_DIR}/${flag} DESTINATION ${IMAGES_DIR})
 ENDFOREACH(flag)
 
 FILE(GLOB LOCAL_MODELS_LIST RELATIVE "${LOCAL_MODELS_DIR}" "${LOCAL_MODELS_DIR}/*")
 FOREACH(flag ${LOCAL_MODELS_LIST})
-        INSTALL(FILES ../../demo/models/${flag} DESTINATION ${MODELS_DIR})
+        INSTALL(FILES ${LOCAL_MODELS_DIR}/${flag} DESTINATION ${MODELS_DIR})
 ENDFOREACH(flag)
 
 FILE(GLOB LOCAL_SCRIPTS_LIST RELATIVE "${LOCAL_SCRIPTS_DIR}" "${LOCAL_SCRIPTS_DIR}/*")
 FOREACH(flag ${LOCAL_SCRIPTS_LIST})
-        INSTALL(FILES ../../demo/scripts/${flag} DESTINATION ${SCRIPTS_DIR})
+        INSTALL(FILES ${LOCAL_SCRIPTS_DIR}/${flag} DESTINATION ${SCRIPTS_DIR})
 ENDFOREACH(flag)
 
 SET(PKG_LIST dali
@@ -77,3 +78,4 @@ INCLUDE_DIRECTORIES(${DEMO_SRC_DIR})
 
 ADD_SUBDIRECTORY(demo)
 ADD_SUBDIRECTORY(examples)
+ADD_SUBDIRECTORY(builder)
diff --git a/build/tizen/builder/CMakeLists.txt b/build/tizen/builder/CMakeLists.txt
new file mode 100644 (file)
index 0000000..d7d72e9
--- /dev/null
@@ -0,0 +1,6 @@
+SET(BUILDER_SRC_DIR ${ROOT_SRC_DIR}/builder)
+
+SET(DALI_BUILDER_SRCS ${BUILDER_SRC_DIR}/dali-builder.cpp)
+ADD_EXECUTABLE(dali-builder ${DALI_BUILDER_SRCS})
+TARGET_LINK_LIBRARIES(dali-builder ${REQUIRED_PKGS_LDFLAGS})
+INSTALL(TARGETS dali-builder DESTINATION ${BINDIR})
index d05820d..bab5ba4 100644 (file)
 SET(EXAMPLES_SRC_DIR ${ROOT_SRC_DIR}/examples)
 
-SET(BLOCKS_SRCS ${EXAMPLES_SRC_DIR}/blocks/blocks-example.cpp)
-ADD_EXECUTABLE(blocks.example ${BLOCKS_SRCS})
-TARGET_LINK_LIBRARIES(blocks.example ${REQUIRED_PKGS_LDFLAGS})
-INSTALL(TARGETS blocks.example DESTINATION ${BINDIR})
-
-SET(BUBBLE_EFFECT_SRCS ${EXAMPLES_SRC_DIR}/shader-effect/bubble-effect-example.cpp)
-ADD_EXECUTABLE(bubble-effect.example ${BUBBLE_EFFECT_SRCS})
-TARGET_LINK_LIBRARIES(bubble-effect.example ${REQUIRED_PKGS_LDFLAGS})
-INSTALL(TARGETS bubble-effect.example DESTINATION ${BINDIR})
-
-SET(CLUSTER_SRCS ${EXAMPLES_SRC_DIR}/cluster/cluster-example.cpp)
-ADD_EXECUTABLE(cluster.example ${CLUSTER_SRCS})
-TARGET_LINK_LIBRARIES(cluster.example ${REQUIRED_PKGS_LDFLAGS})
-INSTALL(TARGETS cluster.example DESTINATION ${BINDIR})
-
-SET(CUBE_TRANSITION_EFFECT_SRCS ${EXAMPLES_SRC_DIR}/transition/cube-transition-effect-example.cpp)
-ADD_EXECUTABLE(cube-transition-effect.example ${CUBE_TRANSITION_EFFECT_SRCS})
-TARGET_LINK_LIBRARIES(cube-transition-effect.example ${REQUIRED_PKGS_LDFLAGS})
-INSTALL(TARGETS cube-transition-effect.example DESTINATION ${BINDIR})
-
-SET(DISSOLVE_EFFECT_SRCS ${EXAMPLES_SRC_DIR}/shader-effect/dissolve-effect-example.cpp)
-ADD_EXECUTABLE(dissolve-effect.example ${DISSOLVE_EFFECT_SRCS})
-TARGET_LINK_LIBRARIES(dissolve-effect.example ${REQUIRED_PKGS_LDFLAGS})
-INSTALL(TARGETS dissolve-effect.example DESTINATION ${BINDIR})
-
-SET(HELLO_WORLD_SRCS ${EXAMPLES_SRC_DIR}/hello-world/hello-world-example.cpp)
-ADD_EXECUTABLE(hello-world.example ${HELLO_WORLD_SRCS})
-TARGET_LINK_LIBRARIES(hello-world.example ${REQUIRED_PKGS_LDFLAGS})
-INSTALL(TARGETS hello-world.example DESTINATION ${BINDIR})
-
-SET(ITEM_VIEW_SRCS ${EXAMPLES_SRC_DIR}/item-view/item-view-example.cpp)
-ADD_EXECUTABLE(item-view.example ${ITEM_VIEW_SRCS})
-TARGET_LINK_LIBRARIES(item-view.example ${REQUIRED_PKGS_LDFLAGS})
-INSTALL(TARGETS item-view.example DESTINATION ${BINDIR})
-
-SET(MAGNIFIER_SRCS ${EXAMPLES_SRC_DIR}/magnifier/magnifier-example.cpp)
-ADD_EXECUTABLE(magnifier.example ${MAGNIFIER_SRCS})
-TARGET_LINK_LIBRARIES(magnifier.example ${REQUIRED_PKGS_LDFLAGS})
-INSTALL(TARGETS magnifier.example DESTINATION ${BINDIR})
-
-SET(MOTION_BLUR_SRCS ${EXAMPLES_SRC_DIR}/motion/motion-blur-example.cpp)
-ADD_EXECUTABLE(motion-blur.example ${MOTION_BLUR_SRCS})
-TARGET_LINK_LIBRARIES(motion-blur.example ${REQUIRED_PKGS_LDFLAGS})
-INSTALL(TARGETS motion-blur.example DESTINATION ${BINDIR})
-
-SET(MOTION_STRETCH_SRCS ${EXAMPLES_SRC_DIR}/motion/motion-stretch-example.cpp)
-ADD_EXECUTABLE(motion-stretch.example ${MOTION_STRETCH_SRCS})
-TARGET_LINK_LIBRARIES(motion-stretch.example ${REQUIRED_PKGS_LDFLAGS})
-INSTALL(TARGETS motion-stretch.example DESTINATION ${BINDIR})
-
-SET(NEW_WINDOW_SRCS ${EXAMPLES_SRC_DIR}/new-window/new-window-example.cpp)
-ADD_EXECUTABLE(new-window.example ${NEW_WINDOW_SRCS})
-TARGET_LINK_LIBRARIES(new-window.example ${REQUIRED_PKGS_LDFLAGS})
-INSTALL(TARGETS new-window.example DESTINATION ${BINDIR})
-
-SET(PAGE_TURN_VIEW_SRCS ${EXAMPLES_SRC_DIR}/page-turn-view/page-turn-view-example.cpp)
-ADD_EXECUTABLE(page-turn-view.example ${PAGE_TURN_VIEW_SRCS})
-TARGET_LINK_LIBRARIES(page-turn-view.example ${REQUIRED_PKGS_LDFLAGS})
-INSTALL(TARGETS page-turn-view.example DESTINATION ${BINDIR})
-
-AUX_SOURCE_DIRECTORY(${EXAMPLES_SRC_DIR}/radial-menu RADIAL_MENU_SRCS)
-ADD_EXECUTABLE(radial-menu.example ${RADIAL_MENU_SRCS})
-TARGET_LINK_LIBRARIES(radial-menu.example ${REQUIRED_PKGS_LDFLAGS})
-INSTALL(TARGETS radial-menu.example DESTINATION ${BINDIR})
-
-SET(REFRACTION_EFFECT_SRCS ${EXAMPLES_SRC_DIR}/shader-effect/refraction-effect-example.cpp)
-ADD_EXECUTABLE(refraction-effect.example ${REFRACTION_EFFECT_SRCS})
-TARGET_LINK_LIBRARIES(refraction-effect.example ${REQUIRED_PKGS_LDFLAGS})
-INSTALL(TARGETS refraction-effect.example DESTINATION ${BINDIR})
-
-SET(SCROLL_VIEW_SRCS ${EXAMPLES_SRC_DIR}/scroll-view/scroll-view-example.cpp)
-ADD_EXECUTABLE(scroll-view.example ${SCROLL_VIEW_SRCS})
-TARGET_LINK_LIBRARIES(scroll-view.example ${REQUIRED_PKGS_LDFLAGS})
-INSTALL(TARGETS scroll-view.example DESTINATION ${BINDIR})
-
-SET(SHADOW_BONE_LIGHTING_SRCS ${EXAMPLES_SRC_DIR}/shadows/shadow-bone-lighting-example.cpp)
-ADD_EXECUTABLE(shadow-bone-lighting.example ${SHADOW_BONE_LIGHTING_SRCS})
-TARGET_LINK_LIBRARIES(shadow-bone-lighting.example ${REQUIRED_PKGS_LDFLAGS})
-INSTALL(TARGETS shadow-bone-lighting.example DESTINATION ${BINDIR})
-
-SET(DALI_BUILDER_SRCS ${EXAMPLES_SRC_DIR}/builder/dali-builder.cpp)
-ADD_EXECUTABLE(dali-builder ${DALI_BUILDER_SRCS})
-TARGET_LINK_LIBRARIES(dali-builder ${REQUIRED_PKGS_LDFLAGS})
-INSTALL(TARGETS dali-builder DESTINATION ${BINDIR})
-
-SET(BUILDER_SRCS ${EXAMPLES_SRC_DIR}/builder/examples.cpp)
-ADD_EXECUTABLE(builder.example ${BUILDER_SRCS})
-TARGET_LINK_LIBRARIES(builder.example ${REQUIRED_PKGS_LDFLAGS})
-INSTALL(TARGETS builder.example DESTINATION ${BINDIR})
-
-SET(IMAGE_SCALING_IRREGULAR_GRID_SRCS ${EXAMPLES_SRC_DIR}/image/image-scaling-irregular-grid/image-scaling-irregular-grid-example.cpp)
-ADD_EXECUTABLE(image-scaling-irregular-grid.example ${IMAGE_SCALING_IRREGULAR_GRID_SRCS})
-TARGET_LINK_LIBRARIES(image-scaling-irregular-grid.example ${REQUIRED_PKGS_LDFLAGS})
-INSTALL(TARGETS image-scaling-irregular-grid.example DESTINATION ${BINDIR})
-
-SET(BUTTONS_SRCS ${EXAMPLES_SRC_DIR}/buttons/buttons-example.cpp)
-ADD_EXECUTABLE(buttons.example ${BUTTONS_SRCS})
-TARGET_LINK_LIBRARIES(buttons.example ${REQUIRED_PKGS_LDFLAGS})
-INSTALL(TARGETS buttons.example DESTINATION ${BINDIR})
-
-SET(LOGGING_SRCS ${EXAMPLES_SRC_DIR}/logging/logging-example.cpp)
-ADD_EXECUTABLE(logging.example ${LOGGING_SRCS})
-TARGET_LINK_LIBRARIES(logging.example ${REQUIRED_PKGS_LDFLAGS})
-INSTALL(TARGETS logging.example DESTINATION ${BINDIR})
-
-SET(TEXT_LABEL_SRCS ${EXAMPLES_SRC_DIR}/text/text-label-example.cpp ${EXAMPLES_SRC_DIR}/text/center-layout.cpp ${EXAMPLES_SRC_DIR}/text/center-layout-impl.cpp)
-ADD_EXECUTABLE(text-label.example ${TEXT_LABEL_SRCS})
-TARGET_LINK_LIBRARIES(text-label.example ${REQUIRED_PKGS_LDFLAGS})
-INSTALL(TARGETS text-label.example DESTINATION ${BINDIR})
-
-SET(TEXT_LABEL_MULTI_LANGUAGE_SRCS ${EXAMPLES_SRC_DIR}/text/text-label-multi-language-example.cpp ${EXAMPLES_SRC_DIR}/text/vertical-layout.cpp ${EXAMPLES_SRC_DIR}/text/vertical-layout-impl.cpp)
-ADD_EXECUTABLE(text-label-multi-language.example ${TEXT_LABEL_MULTI_LANGUAGE_SRCS})
-TARGET_LINK_LIBRARIES(text-label-multi-language.example ${REQUIRED_PKGS_LDFLAGS})
-INSTALL(TARGETS text-label-multi-language.example DESTINATION ${BINDIR})
-
-SET(TEXT_FIELD_SRCS ${EXAMPLES_SRC_DIR}/text/text-field-example.cpp ${EXAMPLES_SRC_DIR}/text/edit-layout.cpp ${EXAMPLES_SRC_DIR}/text/edit-layout-impl.cpp)
-ADD_EXECUTABLE(text-field.example ${TEXT_FIELD_SRCS})
-TARGET_LINK_LIBRARIES(text-field.example ${REQUIRED_PKGS_LDFLAGS})
-INSTALL(TARGETS text-field.example DESTINATION ${BINDIR})
+# Get all subdirectory names from EXAMPLES_SRC_DIR
+MACRO(SUBDIRLIST result curdir)
+  FILE(GLOB children RELATIVE ${curdir} ${curdir}/*)
+  SET(dirlist "")
+  FOREACH(child ${children})
+    IF(IS_DIRECTORY ${curdir}/${child})
+        LIST(APPEND dirlist ${child})
+    ENDIF()
+  ENDFOREACH()
+  SET(${result} ${dirlist})
+ENDMACRO()
+SUBDIRLIST(SUBDIRS ${EXAMPLES_SRC_DIR})
+
+FOREACH(EXAMPLE ${SUBDIRS})
+  FILE(GLOB SRCS "${EXAMPLES_SRC_DIR}/${EXAMPLE}/*.cpp")
+  ADD_EXECUTABLE(${EXAMPLE}.example ${SRCS})
+  TARGET_LINK_LIBRARIES(${EXAMPLE}.example ${REQUIRED_PKGS_LDFLAGS})
+  INSTALL(TARGETS ${EXAMPLE}.example DESTINATION ${BINDIR})
+ENDFOREACH(EXAMPLE)
similarity index 99%
rename from examples/builder/dali-builder.cpp
rename to builder/dali-builder.cpp
index 9f70d71..1ce2ec4 100644 (file)
@@ -35,9 +35,7 @@
 #include <string>
 #include <fstream>
 #include <streambuf>
-#include <boost/scoped_ptr.hpp>
 
-//#include <boost/regex.hpp>
 #include "sys/stat.h"
 #include <ctime>
 
index 8a0a4dc..a278803 100644 (file)
        <ui-application appid="logging.example" exec="/usr/apps/com.samsung.dali-demo/bin/logging.example" nodisplay="true" multiple="false" type="c++app" taskmanage="true">
                <label>Logging</label>
        </ui-application>
+       <ui-application appid="animated-shapes.example" exec="/usr/apps/com.samsung.dali-demo/bin/animated-shapes.example" nodisplay="true" multiple="false" type="c++app" taskmanage="true">
+               <label>Animated shapes</label>
+       </ui-application>
+       <ui-application appid="path-animation.example" exec="/usr/apps/com.samsung.dali-demo/bin/path-animation.example" nodisplay="true" multiple="false" type="c++app" taskmanage="true">
+               <label>Path Animation</label>
+       </ui-application>
 </manifest>
index a13fcc4..e703cac 100644 (file)
@@ -16,7 +16,7 @@
  */
 
 #include "dali-table-view.h"
-#include "examples/shared/dali-demo-strings.h"
+#include "shared/dali-demo-strings.h"
 
 using namespace Dali;
 
@@ -49,6 +49,8 @@ int main(int argc, char **argv)
   demo.AddExample(Example("image-scaling-irregular-grid.example", DALI_DEMO_STR_TITLE_IMAGE_SCALING));
   demo.AddExample(Example("text-label.example", DALI_DEMO_STR_TITLE_TEXT_LABEL));
   demo.AddExample(Example("text-label-multi-language.example", DALI_DEMO_STR_TITLE_TEXT_LABEL)/*TODO - new string*/);
+  demo.AddExample(Example("animated-shapes.example", "Animated Shapes"));
+  demo.AddExample(Example("path-animation.example", "Path Animation"));
   app.MainLoop();
 
   return 0;
index e0e02d7..a8641a8 100644 (file)
 
 // CLASS HEADER
 #include "dali-table-view.h"
-#include "examples/shared/view.h"
 
 // EXTERNAL INCLUDES
 #include <algorithm>
 #include <sstream>
-#include<unistd.h>
+#include <unistd.h>
+
+// INTERNAL INCLUDES
+#include "shared/view.h"
 
 using namespace Dali;
 using namespace Dali::Toolkit;
@@ -246,7 +248,7 @@ void DaliTableView::Initialize( Application& application )
   mScrollView.SetParentOrigin( ParentOrigin::CENTER );
   // Note: Currently, changing mScrollView to use SizeMode RELATIVE_TO_PARENT
   // will cause scroll ends to appear in the wrong position.
-  mScrollView.ApplyConstraint( Dali::Constraint::New<Dali::Vector3>( Dali::Actor::SIZE, Dali::ParentSource( Dali::Actor::SIZE ), Dali::RelativeToConstraint( SCROLLVIEW_RELATIVE_SIZE ) ) );
+  mScrollView.ApplyConstraint( Dali::Constraint::New<Dali::Vector3>( Dali::Actor::Property::Size, Dali::ParentSource( Dali::Actor::Property::Size ), Dali::RelativeToConstraint( SCROLLVIEW_RELATIVE_SIZE ) ) );
   mScrollView.SetAxisAutoLock( true );
   mScrollView.ScrollCompletedSignal().Connect( this, &DaliTableView::OnScrollComplete );
   mScrollView.ScrollStartedSignal().Connect( this, &DaliTableView::OnScrollStart );
@@ -667,7 +669,7 @@ void DaliTableView::OnKeyEvent( const KeyEvent& event )
 void DaliTableView::SetupBackground( Actor bubbleContainer, Actor backgroundLayer, const Vector2& size )
 {
   // Create distance field shape.
-  BitmapImage distanceField;
+  BufferImage distanceField;
   Size imageSize( 512, 512 );
   CreateShapeImage( CIRCLE, imageSize, distanceField );
 
@@ -685,7 +687,7 @@ void DaliTableView::SetupBackground( Actor bubbleContainer, Actor backgroundLaye
   AddBackgroundActors( bubbleContainer, NUM_BACKGROUND_IMAGES, distanceField, size );
 }
 
-void DaliTableView::AddBackgroundActors( Actor layer, int count, BitmapImage distanceField, const Dali::Vector2& size )
+void DaliTableView::AddBackgroundActors( Actor layer, int count, BufferImage distanceField, const Dali::Vector2& size )
 {
   for( int i = 0; i < count; ++i )
   {
@@ -713,9 +715,9 @@ void DaliTableView::AddBackgroundActors( Actor layer, int count, BitmapImage dis
     dfActor.SetPosition( actorPos );
 
     // Define bubble horizontal parallax and vertical wrapping
-    Constraint animConstraint = Constraint::New < Vector3 > ( Actor::POSITION,
+    Constraint animConstraint = Constraint::New < Vector3 > ( Actor::Property::Position,
       Source( mScrollView, mScrollView.GetPropertyIndex( ScrollView::SCROLL_POSITION_PROPERTY_NAME ) ),
-      Dali::ParentSource( Dali::Actor::SIZE ),
+      Dali::ParentSource( Dali::Actor::Property::Size ),
       AnimateBubbleConstraint( actorPos, Random::Range( -0.85f, 0.25f ), randSize ) );
     dfActor.ApplyConstraint( animConstraint );
 
@@ -726,17 +728,17 @@ void DaliTableView::AddBackgroundActors( Actor layer, int count, BitmapImage dis
     Vector3 toPos( actorPos );
     toPos.y -= ( size.y + randSize );
     keyframes.Add( 1.0f, toPos );
-    animation.AnimateBetween( Property( dfActor, Actor::POSITION ), keyframes );
+    animation.AnimateBetween( Property( dfActor, Actor::Property::Position ), keyframes );
     animation.SetLooping( true );
     animation.Play();
     mBackgroundAnimations.push_back( animation );
   }
 }
 
-void DaliTableView::CreateShapeImage( ShapeType shapeType, const Size& size, BitmapImage& distanceFieldOut )
+void DaliTableView::CreateShapeImage( ShapeType shapeType, const Size& size, BufferImage& distanceFieldOut )
 {
   // this bitmap will hold the alpha map for the distance field shader
-  distanceFieldOut = BitmapImage::New( size.width, size.height, Pixel::A8 );
+  distanceFieldOut = BufferImage::New( size.width, size.height, Pixel::A8 );
 
   // Generate bit pattern
   std::vector< unsigned char > imageDataA8;
index 98423de..bc77fba 100644 (file)
@@ -288,17 +288,16 @@ private: // Application callbacks & implementation
    * @param[in] distanceField The distance field bitmap to use
    * @param[in] size The size of the actor
    */
-  void AddBackgroundActors( Dali::Actor layer, int count, Dali::BitmapImage distanceField, const Dali::Vector2& size );
+  void AddBackgroundActors( Dali::Actor layer, int count, Dali::BufferImage distanceField, const Dali::Vector2& size );
 
   /**
    * Create a bitmap with the specified shape and also output a distance field
    *
    * @param[in] shapeType The shape to generate
    * @param[in] size The size of the bitmap to create
-   * @param[out] imageOut The return bitmap
    * @param[out] distanceFieldOut The return depth field alpha map
    */
-  void CreateShapeImage( ShapeType shapeType, const Dali::Size& size, Dali::BitmapImage& distanceFieldOut );
+  void CreateShapeImage( ShapeType shapeType, const Dali::Size& size, Dali::BufferImage& distanceFieldOut );
 
   /**
    * Generate a square bit pattern and depth field
diff --git a/examples/animated-shapes/animated-shapes-example.cpp b/examples/animated-shapes/animated-shapes-example.cpp
new file mode 100644 (file)
index 0000000..b7a5a72
--- /dev/null
@@ -0,0 +1,378 @@
+/*
+ * Copyright (c) 2014 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 <dali/dali.h>
+#include <dali-toolkit/dali-toolkit.h>
+
+using namespace Dali;
+
+namespace
+{
+const char* BACKGROUND_IMAGE( DALI_IMAGE_DIR "background-gradient.jpg" );
+
+}
+
+// This example shows resolution independent rendering and animation of curves using the gpu.
+//
+class AnimatedShapesExample : public ConnectionTracker
+{
+public:
+
+  AnimatedShapesExample( Application& application )
+: mApplication( application )
+{
+    // Connect to the Application's Init signal
+    mApplication.InitSignal().Connect( this, &AnimatedShapesExample::Create );
+}
+
+  ~AnimatedShapesExample()
+  {
+    // Nothing to do here;
+  }
+
+  // The Init signal is received once (only) during the Application lifetime
+  void Create( Application& application )
+  {
+    // Get a handle to the stage
+    Stage stage = Stage::GetCurrent();
+
+    //Create a view
+    mView = Dali::Toolkit::View::New();
+    stage.Add( mView );
+
+    //Set background image for the view
+    ImageAttributes attributes;
+    Image image = ResourceImage::New( BACKGROUND_IMAGE, attributes );
+
+
+    Dali::ImageActor backgroundImageActor = Dali::ImageActor::New( image );
+    mView.SetBackground( backgroundImageActor );
+
+    CreateTriangleMorph(Vector3( stage.GetSize().x*0.5f,stage.GetSize().y*0.15f,0.0f), 100.0f );
+    CreateCircleMorph( Vector3( stage.GetSize().x*0.5f,stage.GetSize().y*0.85f,0.0f), 60.0f );
+    CreatePathMorph( Vector3( stage.GetSize().x*0.5f,stage.GetSize().y*0.5f,0.0f), 55.0f );
+
+
+    stage.KeyEventSignal().Connect(this, &AnimatedShapesExample::OnKeyEvent);
+  }
+
+  void CreateCircleMorph( Vector3 center, float radius )
+  {
+    Toolkit::QuadraticBezier shader = Toolkit::QuadraticBezier::New(16, true);
+
+    shader.SetPoint(0, Vector3(-radius,-radius,0.0f));
+    shader.SetPoint(1, Vector3( 0.0f,-radius,0.0f));
+    shader.SetPoint(2, Vector3(radius,-radius,0.0f));
+
+    shader.SetPoint(3, Vector3(radius,-radius,0.0f));
+    shader.SetPoint(4, Vector3( radius,0.0f,0.0f));
+    shader.SetPoint(5, Vector3(radius,radius,0.0f));
+
+    shader.SetPoint(6, Vector3(radius,radius,0.0f));
+    shader.SetPoint(7, Vector3( 0.0f,radius,0.0f));
+    shader.SetPoint(8, Vector3( -radius,radius,0.0f));
+
+    shader.SetPoint(9,  Vector3( -radius,radius,0.0f));
+    shader.SetPoint(10, Vector3( -radius,0.0f,0.0f));
+    shader.SetPoint(11, Vector3(-radius,-radius,0.0f));
+
+    shader.SetPoint(12, Vector3(-radius,-radius,0.0f));
+    shader.SetPoint(13, Vector3(radius,-radius,0.0f));
+    shader.SetPoint(14, Vector3(radius,radius,0.0f));
+    shader.SetPoint(15, Vector3( -radius,radius,0.0f));
+
+    shader.SetColor(Vector4(1.0f,0.0f,0.0f,1.0f) );
+    shader.SetLineWidth(2.0f);
+
+    ////Generate the mesh
+    Dali::MeshData::VertexContainer vertices;
+    for( unsigned int i(0); i<12; i+=3 )
+    {
+      vertices.push_back( MeshData::Vertex( Vector3::ZERO, Vector2::ZERO, Vector3(0.0f,0.0f,i)  ));
+      vertices.push_back( MeshData::Vertex( Vector3::ZERO, Vector2::ZERO, Vector3(0.5f,0.0f,i+1)));
+      vertices.push_back( MeshData::Vertex( Vector3::ZERO, Vector2::ZERO, Vector3(1.0f,1.0f,i+2)));
+    }
+    vertices.push_back( MeshData::Vertex( Vector3::ZERO, Vector2::ZERO, Vector3(0.0f,1.0f,12)  ));
+    vertices.push_back( MeshData::Vertex( Vector3::ZERO, Vector2::ZERO, Vector3(0.0f,1.0f,13)));
+    vertices.push_back( MeshData::Vertex( Vector3::ZERO, Vector2::ZERO, Vector3(0.0f,1.0f,14)));
+    vertices.push_back( MeshData::Vertex( Vector3::ZERO, Vector2::ZERO, Vector3(0.0f,1.0f,15)));
+
+    short unsigned int indexArray[] = { 0,2,1, 3,5,4,6,8,7, 9, 11, 10, 12,15,14,12,14,13};
+    Dali::MeshData::FaceIndices index( indexArray, indexArray + sizeof(indexArray)/sizeof(short unsigned int) );
+
+    //Material
+    Dali::Material material = Material::New("Material");
+    material.SetDiffuseColor( Vector4(1.0f,1.0f,1.0f,1.0f));
+
+    //Create the Mesh object
+    Dali::MeshData data;
+    data.SetVertices(vertices);
+    data.SetFaceIndices( index );
+    data.SetMaterial( material );
+    data.SetHasNormals( true );
+    Mesh mesh = Mesh::New( data );
+
+    //Create the mesh actor
+    MeshActor meshActor = MeshActor::New(mesh);
+    meshActor.SetAnchorPoint( AnchorPoint::CENTER );
+    meshActor.SetShaderEffect(shader);
+    meshActor.SetPosition( center );
+    meshActor.SetBlendMode(BlendingMode::ON );
+    mView.Add( meshActor );
+
+
+    //Animation
+    Animation animation = Animation::New(5.0f);
+    KeyFrames k0 = KeyFrames::New();
+    k0.Add( 0.0f, Vector3( 0.0f,-radius, 0.0f) );
+    k0.Add( 0.5f, Vector3(0.0f, -radius*4.0f, 0.0f));
+    k0.Add( 1.0f, Vector3( 0.0f,-radius, 0.0f) );
+    animation.AnimateBetween( Property(shader, shader.GetPointPropertyName(1)),k0,AlphaFunctions::EaseInOutSine );
+
+    k0 = KeyFrames::New();
+    k0.Add( 0.0f, Vector3( radius, 0.0f, 0.0f) );
+    k0.Add( 0.5f, Vector3(radius*4.0f,0.0f, 0.0f));
+    k0.Add( 1.0f, Vector3( radius,0.0f, 0.0f));
+    animation.AnimateBetween( Property(shader, shader.GetPointPropertyName(4)),k0,AlphaFunctions::EaseInOutSine );
+
+    k0 = KeyFrames::New();
+    k0.Add( 0.0f, Vector3(0.0f,radius, 0.0f) );
+    k0.Add( 0.5f, Vector3(0.0f,radius*4.0f, 0.0f));
+    k0.Add( 1.0f, Vector3(0.0f,radius, 0.0f) );
+    animation.AnimateBetween( Property(shader, shader.GetPointPropertyName(7)),k0,AlphaFunctions::EaseInOutSine );
+
+    k0 = KeyFrames::New();
+    k0.Add( 0.0f, Vector3( -radius,  0.0f, 0.0f) );
+    k0.Add( 0.5f, Vector3(-radius*4.0f,0.0f, 0.0f));
+    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.SetLooping( true );
+    animation.Play();
+  }
+
+  void CreateTriangleMorph( Vector3 center, float side )
+  {
+    float h = (side *0.5f)/0.866f;
+
+    Vector3 v0 = Vector3(-h,h,0.0f);
+    Vector3 v1 = Vector3(0.0f,-(side*0.366f),0.0f );
+    Vector3 v2 = Vector3(h,h,0.0f);
+
+    Vector3 v3 = v0 + ((v1-v0) * 0.5f);
+    Vector3 v4 = v1 + ((v2-v1) * 0.5f);
+    Vector3 v5 = v2 + ((v0-v2) * 0.5f);
+
+    Toolkit::QuadraticBezier shader = Toolkit::QuadraticBezier::New(12, true);
+
+    shader.SetPoint(0,v0);
+    shader.SetPoint(1,v3);
+    shader.SetPoint(2,v1);
+
+    shader.SetPoint(3,v1);
+    shader.SetPoint(4,v4);
+    shader.SetPoint(5,v2);
+
+    shader.SetPoint(6,v2);
+    shader.SetPoint(7,v5);
+    shader.SetPoint(8,v0);
+
+    shader.SetPoint(9, v0);
+    shader.SetPoint(10,v1);
+    shader.SetPoint(11,v2);
+
+    shader.SetColor(Vector4(0.0f,1.0f,0.0f,1.0f));
+    shader.SetLineWidth(2.0f);
+
+    ////Generate the mesh
+    Dali::MeshData::VertexContainer vertices;
+    for( unsigned int i(0);i<9;i+=3 )
+    {
+      vertices.push_back( MeshData::Vertex( Vector3::ZERO, Vector2::ZERO, Vector3(0.0f,0.0f,i)) );
+      vertices.push_back(  MeshData::Vertex( Vector3::ZERO, Vector2::ZERO,Vector3(0.5f,0.0f,i+1) ) );
+      vertices.push_back( MeshData::Vertex( Vector3::ZERO, Vector2::ZERO, Vector3(1.0f,1.0f,i+2)  ) );
+    }
+
+    vertices.push_back( MeshData::Vertex( Vector3::ZERO, Vector2::ZERO, Vector3(0.0f,1.0f,9)) );
+    vertices.push_back(  MeshData::Vertex( Vector3::ZERO, Vector2::ZERO,Vector3(0.0f,1.0f,10) ) );
+    vertices.push_back( MeshData::Vertex( Vector3::ZERO, Vector2::ZERO, Vector3(0.0f,1.0f,11)  ) );
+
+    short unsigned int indexArray[] = { 0,2,1,3,5,4,6,8,7,9,11,10 };
+    Dali::MeshData::FaceIndices index( indexArray, indexArray + sizeof(indexArray)/sizeof(short unsigned int) );
+
+    //Material
+    Dali::Material material = Material::New("Material");
+    material.SetDiffuseColor( Vector4(1.0f,1.0f,1.0f,1.0f));
+
+    //Create the Mesh object
+    Dali::MeshData data;
+    data.SetVertices(vertices);
+    data.SetFaceIndices( index );
+    data.SetMaterial( material );
+    data.SetHasNormals( true );
+    Mesh mesh = Mesh::New( data );
+
+//    //Create the mesh actor
+    MeshActor meshActor = MeshActor::New(mesh);
+    meshActor.SetAnchorPoint( AnchorPoint::CENTER );
+    meshActor.SetShaderEffect(shader);
+    meshActor.SetPosition( center );
+    meshActor.SetBlendMode(BlendingMode::ON );
+    mView.Add( meshActor );
+
+    //Animation
+    Animation animation = Animation::New(5.0f);
+
+    KeyFrames k0 = KeyFrames::New();
+    k0.Add( 0.0f,v3  );
+    k0.Add( 0.5f, v3 + Vector3(-200.0f,-200.0f,0.0f));
+    k0.Add( 1.0f, v3 );
+    animation.AnimateBetween( Property(shader, shader.GetPointPropertyName(1)),k0,AlphaFunctions::EaseInOutSine );
+
+    k0 = KeyFrames::New();
+    k0.Add( 0.0f,v4  );
+    k0.Add( 0.5f, v4 + Vector3(200.0f,-200.0f,0.0f));
+    k0.Add( 1.0f, v4 );
+    animation.AnimateBetween( Property(shader, shader.GetPointPropertyName(4)),k0,AlphaFunctions::EaseInOutSine );
+
+    k0 = KeyFrames::New();
+    k0.Add( 0.0f,v5  );
+    k0.Add( 0.5f, v5 + Vector3(0.0,200.0f,0.0f));
+    k0.Add( 1.0f, v5 );
+    animation.AnimateBetween( Property(shader, shader.GetPointPropertyName(7)),k0,AlphaFunctions::EaseInOutSine );
+    animation.SetLooping( true );
+    animation.Play();
+  }
+
+  void CreatePathMorph( Vector3 center, float radius )
+  {
+    Toolkit::QuadraticBezier shader = Toolkit::QuadraticBezier::New(12, false);
+
+    shader.SetPoint(0, Vector3(-radius,-radius,0.0f));
+    shader.SetPoint(1, Vector3( 0.0f,-radius,0.0f));
+    shader.SetPoint(2, Vector3(radius,-radius,0.0f));
+
+    shader.SetPoint(3, Vector3(radius,-radius,0.0f));
+    shader.SetPoint(4, Vector3( radius,0.0f,0.0f));
+    shader.SetPoint(5, Vector3(radius,radius,0.0f));
+
+    shader.SetPoint(6, Vector3(radius,radius,0.0f));
+    shader.SetPoint(7, Vector3( 0.0f,radius,0.0f));
+    shader.SetPoint(8, Vector3( -radius,radius,0.0f));
+
+    shader.SetPoint(9,  Vector3( -radius,radius,0.0f));
+    shader.SetPoint(10, Vector3( -radius,0.0f,0.0f));
+    shader.SetPoint(11, Vector3(-radius,-radius,0.0f));
+
+    shader.SetColor(Vector4(1.0f,1.0f,0.0f,1.0f) );
+    shader.SetLineWidth(1.5f);
+
+    ////Generate the mesh/S
+    Dali::MeshData::VertexContainer vertices;
+    for( unsigned int i(0); i<12; i+=3 )
+    {
+      vertices.push_back( MeshData::Vertex( Vector3::ZERO, Vector2::ZERO, Vector3(0.0f,0.0f,i)  ));
+      vertices.push_back( MeshData::Vertex( Vector3::ZERO, Vector2::ZERO, Vector3(0.5f,0.0f,i+1)));
+      vertices.push_back( MeshData::Vertex( Vector3::ZERO, Vector2::ZERO, Vector3(1.0f,1.0f,i+2)));
+    }
+
+
+    short unsigned int indexArray[] = { 0,2,1, 3,5,4,6,8,7, 9, 11, 10 };
+    Dali::MeshData::FaceIndices index( indexArray, indexArray + sizeof(indexArray)/sizeof(short unsigned int) );
+
+    //Material
+    Dali::Material material = Material::New("Material");
+    material.SetDiffuseColor( Vector4(1.0f,1.0f,1.0f,1.0f));
+
+    //Create the Mesh object
+    Dali::MeshData data;
+    data.SetVertices(vertices);
+    data.SetFaceIndices( index );
+    data.SetMaterial( material );
+    data.SetHasNormals( true );
+    Mesh mesh = Mesh::New( data );
+
+    //Create the mesh actor
+    MeshActor meshActor = MeshActor::New(mesh);
+    meshActor.SetAnchorPoint( AnchorPoint::CENTER );
+    meshActor.SetShaderEffect(shader);
+    meshActor.SetPosition( center );
+    meshActor.SetBlendMode(BlendingMode::ON );
+    mView.Add( meshActor );
+
+
+    //Animation
+    Animation animation = Animation::New(5.0f);
+    KeyFrames k0 = KeyFrames::New();
+    k0.Add( 0.0f, Vector3( 0.0f,-radius*2.0, 0.0f) );
+    k0.Add( 0.5f, Vector3(-radius*2.0, -radius*3.0f, 0.0f));
+    k0.Add( 1.0f, Vector3( 0.0f,-radius*2.0, 0.0f) );
+    animation.AnimateBetween( Property(shader, shader.GetPointPropertyName(1)),k0,AlphaFunctions::EaseInOutSine );
+
+    k0 = KeyFrames::New();
+    k0.Add( 0.0f, Vector3( radius*2.0, 0.0f, 0.0f) );
+    k0.Add( 0.5f, Vector3(radius*3.0f,-radius*2.0, 0.0f));
+    k0.Add( 1.0f, Vector3( radius*2.0,0.0f, 0.0f));
+    animation.AnimateBetween( Property(shader, shader.GetPointPropertyName(4)),k0,AlphaFunctions::EaseInOutSine );
+
+    k0 = KeyFrames::New();
+    k0.Add( 0.0f, Vector3(0.0f,radius*2.0, 0.0f) );
+    k0.Add( 0.5f, Vector3(radius*2.0,radius*3.0f, 0.0f));
+    k0.Add( 1.0f, Vector3(0.0f,radius*2.0, 0.0f) );
+    animation.AnimateBetween( Property(shader, shader.GetPointPropertyName(7)),k0,AlphaFunctions::EaseInOutSine );
+
+    k0 = KeyFrames::New();
+    k0.Add( 0.0f, Vector3( -radius*2.0,  0.0f, 0.0f) );
+    k0.Add( 0.5f, Vector3(-radius*3.0f,radius*2.0, 0.0f));
+    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.SetLooping( true );
+    animation.Play();
+  }
+
+  /**
+   * Main key event handler
+   */
+  void OnKeyEvent(const KeyEvent& event)
+  {
+    if( event.state == KeyEvent::Down && (IsKey( event, DALI_KEY_ESCAPE) || IsKey( event, DALI_KEY_BACK ))  )
+    {
+      mApplication.Quit();
+    }
+  }
+
+private:
+  Application&                mApplication;
+  Toolkit::View               mView;
+};
+
+void RunTest( Application& application )
+{
+  AnimatedShapesExample test( application );
+  application.MainLoop();
+}
+
+int main( int argc, char **argv )
+{
+  Application application = Application::New( &argc, &argv );
+  RunTest( application );
+
+  return 0;
+}
index e984286..9cf4395 100644 (file)
 #include <map>
 #include <algorithm>
 
-#include <boost/any.hpp>
-#include <boost/function.hpp>
 #include <dali/dali.h>
 #include <dali-toolkit/dali-toolkit.h>
-#include "../shared/view.h"
+#include "shared/view.h"
 
 using namespace Dali;
 using namespace Dali::Toolkit;
@@ -348,7 +346,7 @@ private:
     mPaddleImage.SetSize( mPaddleFullSize );
 
     mWobbleProperty = mPaddle.RegisterProperty(WOBBLE_PROPERTY_NAME, 0.0f);
-    Constraint wobbleConstraint = Constraint::New<Quaternion>( Actor::ROTATION,
+    Constraint wobbleConstraint = Constraint::New<Quaternion>( Actor::Property::Rotation,
                                                     LocalSource(mWobbleProperty),
                                                     WobbleConstraint(10.0f));
     mPaddle.ApplyConstraint(wobbleConstraint);
@@ -361,16 +359,16 @@ private:
     const float margin(BALL_SIZE.width * stageSize.width * 0.5f);
 
     // Set up notifications for ball's collisions against walls.
-    PropertyNotification leftNotification = mBall.AddPropertyNotification( Actor::POSITION_X, LessThanCondition(margin) );
+    PropertyNotification leftNotification = mBall.AddPropertyNotification( Actor::Property::PositionX, LessThanCondition(margin) );
     leftNotification.NotifySignal().Connect( this, &ExampleController::OnHitLeftWall );
 
-    PropertyNotification rightNotification = mBall.AddPropertyNotification( Actor::POSITION_X, GreaterThanCondition(stageSize.width - margin) );
+    PropertyNotification rightNotification = mBall.AddPropertyNotification( Actor::Property::PositionX, GreaterThanCondition(stageSize.width - margin) );
     rightNotification.NotifySignal().Connect( this, &ExampleController::OnHitRightWall );
 
-    PropertyNotification topNotification = mBall.AddPropertyNotification( Actor::POSITION_Y, LessThanCondition(margin) );
+    PropertyNotification topNotification = mBall.AddPropertyNotification( Actor::Property::PositionY, LessThanCondition(margin) );
     topNotification.NotifySignal().Connect( this, &ExampleController::OnHitTopWall );
 
-    PropertyNotification bottomNotification = mBall.AddPropertyNotification( Actor::POSITION_Y, GreaterThanCondition(stageSize.height + margin) );
+    PropertyNotification bottomNotification = mBall.AddPropertyNotification( Actor::Property::PositionY, GreaterThanCondition(stageSize.height + margin) );
     bottomNotification.NotifySignal().Connect( this, &ExampleController::OnHitBottomWall );
 
     // Set up notification for ball colliding against paddle.
@@ -378,10 +376,10 @@ private:
     stage.Add(delegate);
     Property::Index property = delegate.RegisterProperty(COLLISION_PROPERTY_NAME, Vector3::ZERO);
     Constraint constraint = Constraint::New<Vector3>( property,
-                                                    Source(mBall, Actor::POSITION),
-                                                    Source(mPaddle, Actor::POSITION),
-                                                    Source(mBall, Actor::SIZE),
-                                                    Source(mPaddle, Actor::SIZE),
+                                                    Source(mBall, Actor::Property::Position),
+                                                    Source(mPaddle, Actor::Property::Position),
+                                                    Source(mBall, Actor::Property::Size),
+                                                    Source(mPaddle, Actor::Property::Size),
                                                     CollisionCircleRectangleConstraint( -Vector3(0.0f, mPaddleHitMargin.height * 0.575f, 0.0f),-Vector3(mPaddleHitMargin) ));
     delegate.ApplyConstraint(constraint);
 
@@ -601,10 +599,10 @@ private:
     // Add a constraint on the brick between it and the ball generating a collision-property
     Property::Index property = brick.RegisterProperty(COLLISION_PROPERTY_NAME, Vector3::ZERO);
     Constraint constraint = Constraint::New<Vector3>( property,
-                                                    Source(mBall, Actor::POSITION),
-                                                    Source(brick, Actor::POSITION),
-                                                    Source(mBall, Actor::SIZE),
-                                                    Source(brick, Actor::SIZE),
+                                                    Source(mBall, Actor::Property::Position),
+                                                    Source(brick, Actor::Property::Position),
+                                                    Source(mBall, Actor::Property::Size),
+                                                    Source(brick, Actor::Property::Size),
                                                     CollisionCircleRectangleConstraint(BRICK_COLLISION_MARGIN));
     brick.ApplyConstraint(constraint);
 
@@ -641,7 +639,7 @@ private:
     }
 
     mBallAnimation = Animation::New(MAX_ANIMATION_DURATION);
-    mBallAnimation.AnimateBy( Property( mBall, Actor::POSITION ), mBallVelocity * MAX_ANIMATION_DURATION);
+    mBallAnimation.AnimateBy( Property( mBall, Actor::Property::Position ), mBallVelocity * MAX_ANIMATION_DURATION);
     mBallAnimation.Play();
   }
 
@@ -663,8 +661,8 @@ private:
 
         mDragActor = actor;
         mDragAnimation = Animation::New(0.25f);
-        mDragAnimation.AnimateTo( Property(mDragActor, Actor::SCALE), Vector3(1.1f, 1.1f, 1.0f), AlphaFunctions::EaseOut);
-        mDragAnimation.AnimateTo( Property(mPaddleHandle, Actor::COLOR), Vector4(1.0f, 1.0f, 1.0f, 0.0f), AlphaFunctions::EaseOut);
+        mDragAnimation.AnimateTo( Property(mDragActor, Actor::Property::Scale), Vector3(1.1f, 1.1f, 1.0f), AlphaFunctions::EaseOut);
+        mDragAnimation.AnimateTo( Property(mPaddleHandle, Actor::Property::Color), Vector4(1.0f, 1.0f, 1.0f, 0.0f), AlphaFunctions::EaseOut);
         mDragAnimation.Play();
       }
     }
@@ -689,8 +687,8 @@ private:
         if(point.state==TouchPoint::Up) // Stop dragging
         {
           mDragAnimation = Animation::New(0.25f);
-          mDragAnimation.AnimateTo( Property(mDragActor, Actor::SCALE), Vector3(1.0f, 1.0f, 1.0f), AlphaFunctions::EaseIn);
-          mDragAnimation.AnimateTo( Property(mPaddleHandle, Actor::COLOR), Vector4(1.0f, 1.0f, 1.0f, 1.0f), AlphaFunctions::EaseOut);
+          mDragAnimation.AnimateTo( Property(mDragActor, Actor::Property::Scale), Vector3(1.0f, 1.0f, 1.0f), AlphaFunctions::EaseIn);
+          mDragAnimation.AnimateTo( Property(mPaddleHandle, Actor::Property::Color), Vector4(1.0f, 1.0f, 1.0f, 1.0f), AlphaFunctions::EaseOut);
           mDragAnimation.Play();
           mDragActor.Reset();
         }
@@ -747,8 +745,8 @@ private:
       mBallVelocity = Vector3::ZERO;
 
       Animation shrink = Animation::New(0.5f);
-      shrink.AnimateTo( Property(mPaddle, Actor::SIZE_WIDTH), mPaddleFullSize.x * f + mPaddleHitMargin.x);
-      shrink.AnimateTo( Property(mPaddleImage, Actor::SIZE_WIDTH), mPaddleFullSize.x * f );
+      shrink.AnimateTo( Property(mPaddle, Actor::Property::SizeWidth), mPaddleFullSize.x * f + mPaddleHitMargin.x);
+      shrink.AnimateTo( Property(mPaddleImage, Actor::Property::SizeWidth), mPaddleFullSize.x * f );
 
       shrink.FinishedSignal().Connect( this, &ExampleController::OnPaddleShrunk );
       shrink.Play();
@@ -765,7 +763,7 @@ private:
     mBall.SetPosition( mBallStartPosition );
     mBall.SetColor( Vector4(1.0f, 1.0f, 1.0f, 0.1f) );
     Animation appear = Animation::New(0.5f);
-    appear.AnimateTo( Property(mBall, Actor::COLOR), Vector4(1.0f, 1.0f, 1.0f, 1.0f) );
+    appear.AnimateTo( Property(mBall, Actor::Property::Color), Vector4(1.0f, 1.0f, 1.0f, 1.0f) );
     appear.Play();
 
     if(!mLives)
@@ -832,7 +830,7 @@ private:
 
     // fade brick (destroy)
     Animation destroyAnimation = Animation::New(0.5f);
-    destroyAnimation.AnimateTo( Property( brick, Actor::COLOR_ALPHA ), 0.0f, AlphaFunctions::EaseIn );
+    destroyAnimation.AnimateTo( Property( brick, Actor::Property::ColorAlpha ), 0.0f, AlphaFunctions::EaseIn );
     destroyAnimation.Play();
     destroyAnimation.FinishedSignal().Connect( this, &ExampleController::OnBrickDestroyed );
     mDestroyAnimationMap[destroyAnimation] = brick;
@@ -17,7 +17,7 @@
 
 #include <dali/dali.h>
 #include <dali-toolkit/dali-toolkit.h>
-#include "../shared/view.h"
+#include "shared/view.h"
 
 using namespace Dali;
 
index 90bb1b6..98bf5a6 100644 (file)
 #include <fstream>
 #include <streambuf>
 #include <sstream>
-#include <boost/scoped_ptr.hpp>
 #include <dirent.h>
 #include <stdio.h>
 #include <iostream>
 
-//#include <boost/regex.hpp>
 #include "sys/stat.h"
 #include <ctime>
 
 #include <dali/integration-api/debug.h>
-#include "../shared/view.h"
+#include "shared/view.h"
 
 #define TOKEN_STRING(x) #x
 
index 936fd37..a658fa1 100644 (file)
@@ -15,7 +15,7 @@
  *
  */
 
-#include "../shared/view.h"
+#include "shared/view.h"
 #include <dali/dali.h>
 #include <dali-toolkit/dali-toolkit.h>
 
@@ -287,7 +287,7 @@ class ButtonsController: public ConnectionTracker
       checkBox.SetAnchorPoint( AnchorPoint::TOP_LEFT );
       checkBox.SetBackgroundImage( unselected );
       checkBox.SetSelectedImage( selected );
-      checkBox.SetSize( DP(48), DP(48) );
+      checkBox.SetLabel( "CheckBox1 is unselected" );
       checkBox.StateChangedSignal().Connect( this, &ButtonsController::OnCheckBoxesSelected );
 
       checkBoxBackground.Add( checkBox );
@@ -302,7 +302,7 @@ class ButtonsController: public ConnectionTracker
       checkBox.SetAnchorPoint( AnchorPoint::TOP_LEFT );
       checkBox.SetBackgroundImage( unselected );
       checkBox.SetSelectedImage( selected );
-      checkBox.SetSize( DP(48), DP(48) );
+      checkBox.SetLabel( "CheckBox2 is selected" );
       checkBox.SetSelected( true );
       checkBox.StateChangedSignal().Connect( this, &ButtonsController::OnCheckBoxesSelected );
 
@@ -318,12 +318,13 @@ class ButtonsController: public ConnectionTracker
       checkBox.SetAnchorPoint( AnchorPoint::TOP_LEFT );
       checkBox.SetBackgroundImage( unselected );
       checkBox.SetSelectedImage( selected );
-      checkBox.SetSize( DP(48), DP(48) );
+      checkBox.SetLabel( "CheckBox3 is unselected" );
       checkBox.StateChangedSignal().Connect( this, &ButtonsController::OnCheckBoxesSelected );
 
       checkBoxBackground.Add( checkBox );
     }
 
+    // Create togglabe button
     yPos += GROUP3_HEIGHT + MARGIN_SIZE;
 
     Actor toggleBackground = Toolkit::CreateSolidColorActor( BACKGROUND_COLOUR );
index 85d29f9..9b0e771 100644 (file)
@@ -18,7 +18,7 @@
 #include <sstream>
 #include <iomanip>
 
-#include "../shared/view.h"
+#include "shared/view.h"
 #include <dali/dali.h>
 #include <dali-toolkit/dali-toolkit.h>
 
@@ -707,7 +707,7 @@ public:
           Vector2 shearCenter( Vector2(position.x + size.width * shearAnchor.x, position.y + size.height * shearAnchor.y) );
           Property::Index centerProperty = shaderEffect.GetPropertyIndex(shaderEffect.GetCenterPropertyName());
           Constraint constraint = Constraint::New<Vector2>( centerProperty,
-                                                            Source(mView, Actor::SIZE),
+                                                            Source(mView, Actor::Property::Size),
                                                             ShearEffectCenterConstraint(stageSize, shearCenter) );
           shaderEffect.ApplyConstraint(constraint);
 
@@ -720,12 +720,12 @@ public:
 
           constraint = Constraint::New<float>( angleXAxisProperty,
                                                Source(mScrollView, scrollOvershootProperty),
-                                               Source(mView, Actor::ROTATION),
+                                               Source(mView, Actor::Property::Rotation),
                                                ShearEffectConstraint(stageSize, SHEAR_EFFECT_MAX_OVERSHOOT, Vector2::XAXIS) );
           shaderEffect.ApplyConstraint(constraint);
           constraint = Constraint::New<float>( angleYAxisProperty,
                                                Source(mScrollView, scrollOvershootProperty),
-                                               Source(mView, Actor::ROTATION),
+                                               Source(mView, Actor::Property::Rotation),
                                                ShearEffectConstraint(stageSize, SHEAR_EFFECT_MAX_OVERSHOOT, Vector2::YAXIS) );
           shaderEffect.ApplyConstraint(constraint);
 
@@ -752,7 +752,7 @@ public:
 
         Property::Index anglePerUnit = shaderEffect.GetPropertyIndex( shaderEffect.GetAnglePerUnitPropertyName() );
         shaderEffect.ApplyConstraint( Constraint::New<Vector2>( anglePerUnit,
-                                                                Source(mView, Actor::ROTATION),
+                                                                Source(mView, Actor::Property::Rotation),
                                                                 CarouselEffectOrientationConstraint( angleSweep ) ) );
 
         break;
@@ -779,7 +779,7 @@ public:
         // dont apply shader effect to scrollview as it might override internal shaders for bounce effect etc
         for( std::vector<ClusterInfo>::iterator i = mClusterInfo.begin(); i != mClusterInfo.end(); ++i )
         {
-          Constraint constraint = Constraint::New<float>(Actor::POSITION_Z, SphereEffectOffsetConstraint(SPHERE_EFFECT_POSITION_Z));
+          Constraint constraint = Constraint::New<float>(Actor::Property::PositionZ, SphereEffectOffsetConstraint(SPHERE_EFFECT_POSITION_Z));
           constraint.SetRemoveAction(Constraint::Discard);
           Cluster cluster = i->mCluster;
           SetShaderEffectRecursively( cluster, shaderEffect );
@@ -19,7 +19,7 @@
 #include <math.h>
 
 // INTERNAL INCLUDES
-#include "../shared/view.h"
+#include "shared/view.h"
 
 #include <dali/dali.h>
 #include <dali-toolkit/dali-toolkit.h>
@@ -259,7 +259,7 @@ void CubeTransitionApp::OnInit( Application& application )
   mViewTimer.TickSignal().Connect( this, &CubeTransitionApp::OnTimerTick );
 
   // show the first image
-  mImageConstraint = Constraint::New<Vector3>( Actor::SCALE, LocalSource( Actor::SIZE ), ParentSource( Actor::SIZE ), ScaleToFitKeepAspectRatioConstraint() );
+  mImageConstraint = Constraint::New<Vector3>( Actor::Property::Scale, LocalSource( Actor::Property::Size ), ParentSource( Actor::Property::Size ), ScaleToFitKeepAspectRatioConstraint() );
 
   mCurrentImage = ImageActor::New( ResourceImage::New( IMAGES[mIndex] ) );
   mCurrentImage.SetPositionInheritanceMode( USE_PARENT_POSITION );
@@ -19,7 +19,7 @@
 #include <math.h>
 
 // INTERNAL INCLUDES
-#include "../shared/view.h"
+#include "shared/view.h"
 
 #include <dali/dali.h>
 #include <dali-toolkit/dali-toolkit.h>
@@ -228,7 +228,7 @@ void DissolveEffectApp::OnInit( Application& application )
   mParent.SetPositionInheritanceMode( USE_PARENT_POSITION );
   mContent.Add( mParent );
 
-  mSizeConstraint= Constraint::New<Vector3>( Actor::SCALE, LocalSource( Actor::SIZE ), ParentSource( Actor::SIZE ), ScaleToFitKeepAspectRatioConstraint() );
+  mSizeConstraint= Constraint::New<Vector3>( Actor::Property::Scale, LocalSource( Actor::Property::Size ), ParentSource( Actor::Property::Size ), ScaleToFitKeepAspectRatioConstraint() );
 
   // show the first image
   mCurrentImage = ImageActor::New( ResourceImage::New( IMAGES[mIndex] ) );
index 1be6a05..2f8f242 100644 (file)
@@ -21,7 +21,7 @@
 #include <string>
 #include <algorithm>
 #include <cstdlib> // rand
-#include "../shared/view.h"
+#include "shared/view.h"
 
 #include <dali/dali.h>
 #include <dali-toolkit/dali-toolkit.h>
@@ -340,7 +340,7 @@ public:
     SetLayoutImage();
 
     // Store one 1x1 white image for multiple items to share for backgrounds:
-    mWhiteImage = BitmapImage::WHITE();
+    mWhiteImage = BufferImage::WHITE();
   }
 
   Actor OnKeyboardPreFocusChange( Actor current, Actor proposed, Control::KeyboardFocusNavigationDirection direction )
@@ -1066,7 +1066,7 @@ private:
   Toolkit::PushButton mReplaceButton;
 
   unsigned int mAlphaFuncIndex;
-  BitmapImage mWhiteImage;
+  BufferImage mWhiteImage;
 };
 
 void RunTest(Application& app)
index 5de3dc6..88b14e0 100644 (file)
@@ -15,7 +15,7 @@
  *
  */
 
-#include "../shared/view.h"
+#include "shared/view.h"
 #include <dali/dali.h>
 #include <dali-toolkit/dali-toolkit.h>
 
index aee8adc..4186e8a 100644 (file)
@@ -18,7 +18,7 @@
 // EXTERNAL INCLUDES
 
 // INTERNAL INCLUDES
-#include "../shared/view.h"
+#include "shared/view.h"
 
 #include <dali-toolkit/dali-toolkit.h>
 
@@ -240,11 +240,11 @@ public:
     overlay.Add( mMagnifier );
 
     // Apply constraint to animate the position of the magnifier.
-    Constraint constraint = Constraint::New<Vector3>(Actor::POSITION,
-                                                     LocalSource(Actor::SIZE),
-                                                     LocalSource(Actor::PARENT_ORIGIN),
-                                                     LocalSource(Actor::ANCHOR_POINT),
-                                                     ParentSource(Actor::SIZE),
+    Constraint constraint = Constraint::New<Vector3>(Actor::Property::Position,
+                                                     LocalSource(Actor::Property::Size),
+                                                     LocalSource(Actor::Property::ParentOrigin),
+                                                     LocalSource(Actor::Property::AnchorPoint),
+                                                     ParentSource(Actor::Property::Size),
                                                      ConfinementConstraint(ParentOrigin::CENTER, Vector2::ONE * MAGNIFIER_INDENT, Vector2::ONE * MAGNIFIER_INDENT));
     constraint.SetRemoveAction(Constraint::Discard);
     mMagnifier.ApplyConstraint( constraint );
@@ -260,15 +260,15 @@ public:
     ContinueAnimation();
 
     // Apply constraint to animate the position of the magnifier.
-    constraint = Constraint::New<Vector3>(Actor::POSITION,
-                                          LocalSource(Actor::SIZE),
+    constraint = Constraint::New<Vector3>(Actor::Property::Position,
+                                          LocalSource(Actor::Property::Size),
                                           LocalSource(mAnimationTimeProperty),
                                           MagnifierPathConstraint(mStageSize, mStageSize * 0.5f));
     mBouncingMagnifier.ApplyConstraint( constraint );
 
     // Apply constraint to animate the source of the magnifier.
     constraint = Constraint::New<Vector3>(mBouncingMagnifier.GetPropertyIndex( Toolkit::Magnifier::SOURCE_POSITION_PROPERTY_NAME ),
-                                          LocalSource(Actor::SIZE),
+                                          LocalSource(Actor::Property::Size),
                                           LocalSource(mAnimationTimeProperty),
                                           MagnifierPathConstraint(mStageSize));
     mBouncingMagnifier.ApplyConstraint( constraint );
@@ -355,7 +355,7 @@ public:
     if(!mMagnifierShown)
     {
       Animation animation = Animation::New(MAGNIFIER_DISPLAY_DURATION);
-      animation.AnimateTo(Property(mMagnifier, Actor::SCALE), Vector3::ONE, AlphaFunctions::EaseIn);
+      animation.AnimateTo(Property(mMagnifier, Actor::Property::Scale), Vector3::ONE, AlphaFunctions::EaseIn);
       animation.Play();
       mMagnifierShown = true;
     }
@@ -369,7 +369,7 @@ public:
     if(mMagnifierShown)
     {
       Animation animation = Animation::New(MAGNIFIER_DISPLAY_DURATION);
-      animation.AnimateTo(Property(mMagnifier, Actor::SCALE), Vector3::ZERO, AlphaFunctions::EaseOut);
+      animation.AnimateTo(Property(mMagnifier, Actor::Property::Scale), Vector3::ZERO, AlphaFunctions::EaseOut);
       animation.Play();
       mMagnifierShown = false;
     }
similarity index 99%
rename from examples/motion/motion-blur-example.cpp
rename to examples/motion-blur/motion-blur-example.cpp
index 29d77b1..f0cc48c 100644 (file)
@@ -18,7 +18,7 @@
 #include <sstream>
 #include <iomanip>
 
-#include "../shared/view.h"
+#include "shared/view.h"
 #include <dali/dali.h>
 #include <dali-toolkit/dali-toolkit.h>
 
@@ -349,7 +349,7 @@ public:
     mActorTapMovementAnimation = Animation::New( animDuration );
     if ( mMotionBlurImageActor )
     {
-      mActorTapMovementAnimation.AnimateTo( Property(mMotionBlurImageActor, Actor::POSITION), destPos, AlphaFunctions::EaseInOutSine, TimePeriod(animDuration) );
+      mActorTapMovementAnimation.AnimateTo( Property(mMotionBlurImageActor, Actor::Property::Position), destPos, AlphaFunctions::EaseInOutSine, TimePeriod(animDuration) );
     }
     mActorTapMovementAnimation.SetEndAction( Animation::Bake );
     mActorTapMovementAnimation.Play();
@@ -18,7 +18,7 @@
 #include <sstream>
 #include <iomanip>
 
-#include "../shared/view.h"
+#include "shared/view.h"
 #include <dali/dali.h>
 #include <dali-toolkit/dali-toolkit.h>
 
@@ -261,7 +261,7 @@ public:
     mActorTapMovementAnimation = Animation::New( animDuration );
     if ( mMotionStretchImageActor )
     {
-      mActorTapMovementAnimation.AnimateTo( Property(mMotionStretchImageActor, Actor::POSITION), destPos, AlphaFunctions::EaseInOutSine, TimePeriod(animDuration) );
+      mActorTapMovementAnimation.AnimateTo( Property(mMotionStretchImageActor, Actor::Property::Position), destPos, AlphaFunctions::EaseInOutSine, TimePeriod(animDuration) );
     }
     mActorTapMovementAnimation.SetEndAction( Animation::Bake );
     mActorTapMovementAnimation.Play();
index 3a1f989..e6e35f0 100644 (file)
@@ -15,7 +15,7 @@
  */
 
 #include <dali-toolkit/dali-toolkit.h>
-#include "../shared/view.h"
+#include "shared/view.h"
 #include <cstdio>
 #include <iostream>
 
@@ -26,7 +26,6 @@ class NewWindowController;
 
 namespace
 {
-const char * gModelFile = DALI_MODEL_DIR "AlbumCute.dali-bin";
 const char * const BACKGROUND_IMAGE( DALI_IMAGE_DIR "background-2.jpg" );
 const char * const TOOLBAR_IMAGE( DALI_IMAGE_DIR "top-bar.png" );
 const char * const LOSE_CONTEXT_IMAGE( DALI_IMAGE_DIR "icon-cluster-wobble.png" );
@@ -70,8 +69,6 @@ public:
   void CreateBubbles(Vector2 stageSize);
   void CreateBlending();
   void CreateText();
-  void CreateModel();
-  void OnModelLoaded(Model model);
   bool OnTrackTimerTick();
   bool OnExplodeTimerTick();
   void SetUpAnimation( Vector2 emitPosition, Vector2 direction );
@@ -82,17 +79,13 @@ public:
 
 private:
   Application                mApplication;
-  Animation                  mModelAnimation;
-  Actor                      mModelActor;
   Actor                      mCastingLight;
   ImageActor                 mImageActor;
   ImageActor                 mBlendActor;
   Image                      mEffectImage;
   Image                      mBaseImage;
-  LightActor                 mKeyLightActor;
   MeshActor                  mMeshActor;
   MeshActor                  mAnimatedMeshActor;
-  Model                      mModel;
 
   Toolkit::View              mView;                              ///< The View instance.
   Toolkit::ToolBar           mToolBar;                           ///< The View's Toolbar.
@@ -174,7 +167,6 @@ void NewWindowController::Create( Application& app )
   CreateMeshActor();
   CreateBlending();
   CreateText();
-  CreateModel();
 
   stage.ContextLostSignal().Connect(this, &NewWindowController::OnContextLost);
   stage.ContextRegainedSignal().Connect(this, &NewWindowController::OnContextRegained);
@@ -187,7 +179,7 @@ void NewWindowController::Destroy( Application& app )
 bool NewWindowController::OnLoseContextButtonClicked( Toolkit::Button button )
 {
   // Add as an idle callback to avoid ProcessEvents being recursively called.
-  mApplication.AddIdle(NewWindowController::NewWindow);
+  mApplication.AddIdle( MakeCallback( NewWindowController::NewWindow ) );
   return true;
 }
 
@@ -200,7 +192,6 @@ void NewWindowController::CreateMeshActor()
   meshActor.SetScale( 100.0f );
   meshActor.SetParentOrigin( ParentOrigin::CENTER );
   meshActor.SetPosition(Vector3( -150.0f, 200.0f, 0.0f ));
-  meshActor.SetAffectedByLighting( false );
   meshActor.SetName("MeshActor");
   mContentLayer.Add( meshActor );
 
@@ -211,7 +202,6 @@ void NewWindowController::CreateMeshActor()
   meshActor2.SetScale( 100.0f );
   meshActor2.SetParentOrigin( ParentOrigin::CENTER );
   meshActor2.SetPosition(Vector3( -150.0f, 310.0f, 0.0f ));
-  meshActor2.SetAffectedByLighting( false );
   meshActor2.SetName("MeshActor");
   mContentLayer.Add( meshActor2 );
 }
@@ -416,58 +406,6 @@ Mesh NewWindowController::CreateMesh(bool hasColor, Material material)
   return mesh;
 }
 
-void NewWindowController::CreateModel()
-{
-  mModel = Model::New(gModelFile);
-  mModel.LoadingFinishedSignal().Connect(this, &NewWindowController::OnModelLoaded);
-
-  //Create a Key light
-  Light keylight = Light::New("KeyLight");
-  keylight.SetFallOff(Vector2(10000.0f, 10000.0f));
-
-  mCastingLight = Actor::New();
-  mCastingLight.SetParentOrigin(ParentOrigin::CENTER);
-  mCastingLight.SetAnchorPoint(AnchorPoint::CENTER);
-  mCastingLight.SetPosition( Vector3( 0.0f, 0.0f, 800.0f ) );
-  mContentLayer.Add( mCastingLight );
-
-  mKeyLightActor = LightActor::New();
-  mKeyLightActor.SetParentOrigin(ParentOrigin::CENTER);
-  mKeyLightActor.SetName(keylight.GetName());
-
-  //Add all the actors to the stage
-  mCastingLight.Add(mKeyLightActor);
-  mKeyLightActor.SetLight(keylight);
-}
-
-void NewWindowController::OnModelLoaded( Model model )
-{
-  if( model.GetLoadingState() == ResourceLoadingSucceeded )
-  {
-    std::cout << "Succeeded loading model" << std::endl;
-    mModelActor = ModelActorFactory::BuildActorTree(mModel, "");  // Gets root actor
-    mModelActor.SetSize(250.0f, 250.0f);
-    mModelActor.SetPosition(0.0f, 200.0f, 70.0f);
-    mModelActor.SetScale(0.5f);
-    mModelActor.SetRotation(Radian(Math::PI*0.25f), Vector3(1.0, 0.7, 0.0));
-
-    mContentLayer.Add( mModelActor );
-
-    if (mModel.NumberOfAnimations())
-    {
-      mModelAnimation = ModelActorFactory::BuildAnimation(mModel, mModelActor, 0);
-      mModelAnimation.SetDuration(4.0f);
-      mModelAnimation.SetLooping(true);
-      mModelAnimation.Play();
-    }
-  }
-  else
-  {
-    std::cout << "Failed loading model" << std::endl;
-    mApplication.Quit();
-  }
-}
-
 void NewWindowController::NewWindow(void)
 {
   PositionSize posSize(0, 0, 720, 1280);
diff --git a/examples/path-animation/path-animation.cpp b/examples/path-animation/path-animation.cpp
new file mode 100644 (file)
index 0000000..9f924e0
--- /dev/null
@@ -0,0 +1,365 @@
+/*
+ * Copyright (c) 2014 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.
+ *
+ */
+
+/**
+ * This example shows how to use path animations in DALi
+ */
+
+// EXTERNAL INCLUDES
+#include <dali-toolkit/dali-toolkit.h>
+
+// INTERNAL INCLUDES
+#include "shared/view.h"
+
+using namespace Dali;
+using namespace Dali::Toolkit;
+
+
+namespace
+{
+const char* BACKGROUND_IMAGE( DALI_IMAGE_DIR "background-default.png" );
+const char* ACTOR_IMAGE( DALI_IMAGE_DIR "dali-logo.png" );
+const char* TOOLBAR_IMAGE( DALI_IMAGE_DIR "top-bar.png" );
+}; //Unnamed namespace
+
+/**
+ * @brief The main class of the demo.
+ */
+class PathController : public ConnectionTracker
+{
+public:
+
+  PathController( Application& application )
+  : mApplication( application )
+  {
+    // Connect to the Application's Init signal
+    mApplication.InitSignal().Connect( this, &PathController::Create );
+  }
+
+  ~PathController()
+  {
+    // Nothing to do here.
+  }
+
+  /**
+   * One-time setup in response to Application InitSignal.
+   */
+  void Create( Application& application )
+  {
+    // Get a handle to the stage:
+    Stage stage = Stage::GetCurrent();
+
+    // Connect to input event signals:
+    stage.KeyEventSignal().Connect(this, &PathController::OnKeyEvent);
+
+    // Create a default view with a default tool bar:
+    Toolkit::View view;                ///< The View instance.
+    Toolkit::ToolBar toolBar;          ///< The View's Toolbar.
+    mContentLayer = DemoHelper::CreateView( mApplication,
+                                            view,
+                                            toolBar,
+                                            BACKGROUND_IMAGE,
+                                            TOOLBAR_IMAGE,
+                                            "" );
+
+    mContentLayer.TouchedSignal().Connect(this, &PathController::OnTouchLayer);
+
+    //Path
+    mPath = Dali::Path::New();
+    mPath.AddPoint( Vector3( 10.0f, stage.GetSize().y*0.5f, 0.0f ));
+    mPath.AddPoint( Vector3( stage.GetSize().x*0.5f, stage.GetSize().y*0.3f, 0.0f ));
+    mPath.GenerateControlPoints(0.25f);
+    DrawPath( 200u );
+
+    //Actor
+    ImageAttributes attributes;
+    Image img = ResourceImage::New(ACTOR_IMAGE, attributes );
+    mActor = ImageActor::New( img );
+    mActor.SetPosition( Vector3( 10.0f, stage.GetSize().y*0.5f, 0.0f ) );
+    mActor.SetAnchorPoint( AnchorPoint::CENTER );
+    mActor.SetSize( 100, 50, 1 );
+    stage.Add( mActor );
+
+    mForward = Vector3::XAXIS;
+    CreateAnimation();
+  }
+
+  /**
+   * Create an actor representing a control point of the curve
+   * @param[in] name Name of the actor
+   * @param[in] size Size of the containing actor
+   * @param[in] imageSize Size of the imageActor
+   * @param[in] color Color of the imageActor
+   */
+  Actor CreateControlPoint(const std::string& name, const Vector3& size, const Vector3& imageSize, const Vector4& color )
+  {
+    Actor actor = Actor::New();
+    actor.SetParentOrigin( ParentOrigin::TOP_LEFT);
+    actor.SetAnchorPoint( AnchorPoint::CENTER );
+    actor.SetSize( size );
+    actor.SetName( name );
+    actor.TouchedSignal().Connect(this, &PathController::OnTouchPoint);
+
+    ImageActor imageActor = Toolkit::CreateSolidColorActor(color);
+    imageActor.SetColor(Vector4(1.0f,0.0f,0.0f,1.0f));
+    imageActor.SetParentOrigin( ParentOrigin::CENTER);
+    imageActor.SetAnchorPoint( AnchorPoint::CENTER );
+    imageActor.SetSize( imageSize );
+    actor.Add(imageActor );
+
+    return actor;
+  }
+
+  /**
+   * Draws the path and the control points for the path
+   * @param[in] resolution Number of segments for the path.
+   */
+  void DrawPath( unsigned int resolution )
+  {
+    Stage stage = Dali::Stage::GetCurrent();
+
+    //Create path mesh actor
+    Dali::MeshData meshData = MeshFactory::NewPath( mPath, resolution );
+    Dali::Material material = Material::New("LineMaterial");
+    material.SetDiffuseColor( Vector4(0.0f,0.0f,0.0f,1.0f));
+    meshData.SetMaterial(material);
+    Dali::Mesh mesh = Dali::Mesh::New( meshData );
+    if( mMeshPath )
+    {
+      stage.Remove( mMeshPath );
+    }
+    mMeshPath = Dali::MeshActor::New( mesh );
+    mMeshPath.SetAnchorPoint( AnchorPoint::TOP_LEFT );
+    mMeshPath.SetParentOrigin( ParentOrigin::TOP_LEFT );
+    stage.Add( mMeshPath );
+
+
+    ////Create mesh connecting interpolation points and control points
+    std::vector<Dali::MeshData::Vertex> vVertex;
+    std::vector<unsigned short> vIndex;
+    size_t pointCount = mPath.GetPointCount();
+    size_t controlPointIndex = 0;
+    for( size_t i(0); i<pointCount; ++i )
+    {
+      vVertex.push_back( MeshData::Vertex(mPath.GetPoint(i),Vector2::ZERO, Vector3::ZERO ) );
+      if( i<pointCount-1)
+      {
+        vVertex.push_back( MeshData::Vertex(mPath.GetControlPoint(controlPointIndex),Vector2::ZERO, Vector3::ZERO ));
+        vVertex.push_back( MeshData::Vertex(mPath.GetControlPoint(controlPointIndex+1),Vector2::ZERO, Vector3::ZERO ));
+      }
+      controlPointIndex += 2;
+    }
+
+    size_t segmentCount = 2*(pointCount-2)+2;
+    unsigned short index=0;
+    for( size_t i(0); i<segmentCount; ++i, ++index )
+    {
+      vIndex.push_back(index);
+      vIndex.push_back(index+1);
+
+      if( ~i & 1 )
+      {
+        index++;
+      }
+    }
+
+    meshData.SetLineData( vVertex, vIndex, material );
+    meshData.SetMaterial(material);
+    mesh = Dali::Mesh::New( meshData );
+    if( mMeshHandlers )
+    {
+      stage.Remove( mMeshHandlers );
+    }
+    mMeshHandlers = Dali::MeshActor::New( mesh );
+    mMeshHandlers.SetAnchorPoint( AnchorPoint::TOP_LEFT );
+    mMeshHandlers.SetParentOrigin( ParentOrigin::TOP_LEFT );
+    stage.Add( mMeshHandlers );
+
+
+    //Create actors representing interpolation points
+    for( size_t i(0); i<pointCount; ++i )
+    {
+      if( !mKnot[i] )
+      {
+        std::string name( "Knot");
+        name.push_back(i);
+        mKnot[i] = CreateControlPoint( name, Vector3(150.0f,150.0f,0.0f), Vector3(20.0f,20.0f,0.0f), Vector4(0.0f,0.0f,0.0f,1.0f) );
+        mContentLayer.Add(mKnot[i] );
+      }
+
+      mKnot[i].SetPosition( mPath.GetPoint(i) );
+    }
+
+    //Create actors representing control points
+    size_t controlPointCount=2*(pointCount-1);
+    for( size_t i(0); i<controlPointCount; ++i )
+    {
+      if( !mControlPoint[i])
+      {
+        std::string name( "ControlPoint");
+        name.push_back(i);
+        mControlPoint[i] = CreateControlPoint( name, Vector3(150.0f,150.0f,0.0f), Vector3(20.0f,20.0f,0.0f), Vector4(1.0f,0.0f,0.0f,1.0f) );
+        mContentLayer.Add(mControlPoint[i] );
+      }
+
+      mControlPoint[i].SetPosition( mPath.GetControlPoint(i) );
+    }
+  }
+
+  bool OnTouchPoint(Actor actor, const TouchEvent& event)
+  {
+    if(event.GetPointCount()>0)
+    {
+      const TouchPoint& point = event.GetPoint(0);
+
+      if(point.state==TouchPoint::Down)
+      {
+        // Start dragging
+        mDragActor = actor;
+      }
+    }
+    return false;
+  }
+
+  bool OnTouchLayer(Actor actor, const TouchEvent& event)
+  {
+    if(event.GetPointCount()>0)
+    {
+      const TouchPoint& point = event.GetPoint(0);
+
+      if(point.state==TouchPoint::Up)
+      {
+        //Stop dragging
+        mDragActor.Reset();
+      }
+      else if(!mDragActor && point.state==TouchPoint::Down && mPath.GetPointCount()<10 )
+      {
+        // Add new point
+        const TouchPoint& point = event.GetPoint(0);
+        Vector3 newPoint = Vector3(point.screen.x, point.screen.y, 0.0f);
+
+        size_t pointCount = mPath.GetPointCount();
+        Vector3 lastPoint = mPath.GetPoint( pointCount-1);
+        mPath.AddPoint( newPoint );
+
+        Vector3 displacement = (newPoint-lastPoint)/8;
+
+        mPath.AddControlPoint( lastPoint + displacement );
+        mPath.AddControlPoint( newPoint - displacement);
+
+        DrawPath( 200u );
+        CreateAnimation();
+      }
+      else
+      {
+        if( mDragActor )
+        {
+          const TouchPoint& point = event.GetPoint(0);
+          Vector3 newPosition = Vector3(point.screen.x, point.screen.y, 0.0f);
+
+          std::string actorName(mDragActor.GetName());
+
+          if( actorName.compare(0, 4, "Knot") == 0)
+          {
+             int index = actorName[4];
+             mPath.GetPoint(index) = newPosition;
+          }
+          else
+          {
+            int index = actorName[12];
+            mPath.GetControlPoint(index) = newPosition;
+          }
+
+          DrawPath( 200u );
+          CreateAnimation();
+        }
+      }
+    }
+    return false;
+  }
+
+ /**
+  * Main key event handler.
+  * Quit on escape key.
+  */
+  void OnKeyEvent(const KeyEvent& event)
+  {
+    if( event.state == KeyEvent::Down )
+    {
+      if( IsKey( event, Dali::DALI_KEY_ESCAPE ) ||
+          IsKey( event, Dali::DALI_KEY_BACK ) )
+      {
+        mApplication.Quit();
+      }
+    }
+  }
+
+  /**
+   * Create the path animation.
+   */
+  void CreateAnimation()
+  {
+    if( !mAnimation )
+    {
+      mAnimation = Animation::New( 2.0f );
+    }
+    else
+    {
+      mAnimation.Pause();
+      mAnimation.Clear();
+      mActor.SetRotation( Quaternion() );
+    }
+
+    mAnimation.Animate( mActor, mPath, mForward );
+    mAnimation.SetLooping( true );
+    mAnimation.Play();
+  }
+
+private:
+  Application&  mApplication;
+
+  Layer      mContentLayer;       ///< The content layer
+
+  Path       mPath;               ///< The path used in the animation
+  ImageActor mActor;              ///< Actor being animated
+  Vector3    mForward;            ///< Current forward vector
+  Animation  mAnimation;          ///< Path animation
+
+  MeshActor  mMeshPath;           ///< Mesh actor for the path
+  MeshActor  mMeshHandlers;       ///< Mesh actor for the segments connecting points and control points
+  Actor mKnot[10];           ///< ImageActors for the interpolation points
+  Actor mControlPoint[18];   ///< ImageActors for the control points
+
+  Actor      mDragActor;          ///< Reference to the actor currently being dragged
+};
+
+void RunTest( Application& application )
+{
+  PathController test( application );
+
+  application.MainLoop();
+}
+
+/** Entry point for Linux & Tizen applications */
+int main( int argc, char **argv )
+{
+  Application application = Application::New( &argc, &argv );
+
+  RunTest( application );
+
+  return 0;
+}
index bce680f..f022eb0 100644 (file)
@@ -17,7 +17,7 @@
 
 #include <dali/dali.h>
 #include <dali-toolkit/dali-toolkit.h>
-#include "../shared/view.h"
+#include "shared/view.h"
 #include "radial-sweep-view.h"
 #include "radial-sweep-view-impl.h"
 
index ac01fce..f1efe5d 100644 (file)
@@ -352,7 +352,6 @@ void RadialSweepViewImpl::CreateStencil( Degree initialSector )
   mMesh[0].SetPosition( Vector3(  0.0f,  0.0f, 0.0f ) ); // Center pt
 
   mStencilActor = MeshActor::New(mMesh);
-  mStencilActor.SetAffectedByLighting(false);
   mStencilActor.SetCullFace(CullNone); // Allow clockwise & anticlockwise faces
 
   mStartAngleIndex = mStencilActor.RegisterProperty("start-angle", Property::Value(0.0f));
@@ -363,17 +362,17 @@ void RadialSweepViewImpl::CreateStencil( Degree initialSector )
 
   // Constrain the vertices of the square mesh to sweep out a sector as the
   // rotation angle is animated.
-  mMesh.ApplyConstraint(Constraint::New<Vector3>( mMesh.GetPropertyIndex(1, AnimatableVertex::POSITION),
+  mMesh.ApplyConstraint(Constraint::New<Vector3>( mMesh.GetPropertyIndex(1, AnimatableVertex::Property::Position),
                                                   srcStart, srcStart, SquareFanConstraint(0)));
-  mMesh.ApplyConstraint(Constraint::New<Vector3>( mMesh.GetPropertyIndex(2, AnimatableVertex::POSITION),
+  mMesh.ApplyConstraint(Constraint::New<Vector3>( mMesh.GetPropertyIndex(2, AnimatableVertex::Property::Position),
                                                   srcStart, srcRot, SquareFanConstraint(0)));
-  mMesh.ApplyConstraint(Constraint::New<Vector3>( mMesh.GetPropertyIndex(3, AnimatableVertex::POSITION),
+  mMesh.ApplyConstraint(Constraint::New<Vector3>( mMesh.GetPropertyIndex(3, AnimatableVertex::Property::Position),
                                                   srcStart, srcRot, SquareFanConstraint(1)));
-  mMesh.ApplyConstraint(Constraint::New<Vector3>( mMesh.GetPropertyIndex(4, AnimatableVertex::POSITION),
+  mMesh.ApplyConstraint(Constraint::New<Vector3>( mMesh.GetPropertyIndex(4, AnimatableVertex::Property::Position),
                                                   srcStart, srcRot, SquareFanConstraint(2)));
-  mMesh.ApplyConstraint(Constraint::New<Vector3>( mMesh.GetPropertyIndex(5, AnimatableVertex::POSITION),
+  mMesh.ApplyConstraint(Constraint::New<Vector3>( mMesh.GetPropertyIndex(5, AnimatableVertex::Property::Position),
                                                   srcStart, srcRot, SquareFanConstraint(3)));
-  mMesh.ApplyConstraint(Constraint::New<Vector3>( mMesh.GetPropertyIndex(6, AnimatableVertex::POSITION),
+  mMesh.ApplyConstraint(Constraint::New<Vector3>( mMesh.GetPropertyIndex(6, AnimatableVertex::Property::Position),
                                                   srcStart, srcRot, SquareFanConstraint(4)));
 
   mStencilActor.SetDrawMode( DrawMode::STENCIL );
@@ -17,7 +17,7 @@
 
 #include <dali/dali.h>
 #include <dali-toolkit/dali-toolkit.h>
-#include "../shared/view.h"
+#include "shared/view.h"
 
 #include <fstream>
 #include <sstream>
@@ -235,7 +235,7 @@ public:
     handle.SetUniform( "uEffectStrength", 0.f );
     handle.SetUniform( "uLightIntensity",  2.5f );
 
-    Property::Index index = handle.RegisterProperty( "uSpinAngle", 0.f );
+    Dali::Property::Index index = handle.RegisterProperty( "uSpinAngle", 0.f );
     Constraint constraint = Constraint::New<Vector2>( handle.GetPropertyIndex("uLightSpinOffset"),
                                                       LocalSource(index),
                                                       LightOffsetConstraint(stageSize.x*0.1f));
@@ -501,7 +501,6 @@ private:
     meshData.SetHasNormals(true);
     mMeshActor = MeshActor::New( Mesh::New( meshData ) );
     mMeshActor.SetParentOrigin(ParentOrigin::CENTER);
-    mMeshActor.SetAffectedByLighting( false );
     mMeshActor.SetShaderEffect( mNoEffect );
     mContent.Add( mMeshActor );
   }
index f42d806..169fbc6 100644 (file)
@@ -19,7 +19,7 @@
 #include <sstream>
 
 // INTERNAL INCLUDES
-#include "../shared/view.h"
+#include "shared/view.h"
 #include <dali/dali.h>
 #include <dali-toolkit/dali-toolkit.h>
 
@@ -210,7 +210,7 @@ public:
 
     // Hack to force screen refresh.
     Animation animation = Animation::New(1.0f);
-    animation.AnimateTo(Property(mContentLayer, Actor::POSITION), Vector3::ZERO );
+    animation.AnimateTo(Property(mContentLayer, Actor::Property::Position), Vector3::ZERO );
     animation.Play();
   }
 
@@ -16,7 +16,7 @@
  */
 
 // INTERNAL INCLUDES
-#include "../shared/view.h"
+#include "shared/view.h"
 
 #include <dali/dali.h>
 #include <dali-toolkit/dali-toolkit.h>
@@ -194,7 +194,7 @@ public:
     mPinchGestureDetector.Attach( mView );
     mPinchGestureDetector.DetectedSignal().Connect(this, &TestApp::OnPinch);
 
-    mTapGestureDetector = TapGestureDetector::New(1, 1);
+    mTapGestureDetector = TapGestureDetector::New();
     mTapGestureDetector.Attach( mView );
     mTapGestureDetector.DetectedSignal().Connect(this, &TestApp::OnTap);
   }
@@ -269,9 +269,9 @@ public:
 
     Property::Index angleIndex = mImageActor2.RegisterProperty("angle", Property::Value(30.0f));
     Source angleSrc( mImageActor2, angleIndex );
-    mImageActor1.ApplyConstraint(Constraint::New<Quaternion>( Actor::ROTATION, angleSrc,
+    mImageActor1.ApplyConstraint(Constraint::New<Quaternion>( Actor::Property::Rotation, angleSrc,
                                                               RotationConstraint(-1.0f)));
-    mImageActor3.ApplyConstraint(Constraint::New<Quaternion>( Actor::ROTATION, angleSrc,
+    mImageActor3.ApplyConstraint(Constraint::New<Quaternion>( Actor::Property::Rotation, angleSrc,
                                                               RotationConstraint(+1.0f)));
 
     mSceneAnimation = Animation::New(2.5f);
index 73868a4..8115a00 100755 (executable)
@@ -2,7 +2,7 @@
 
 Name:       com.samsung.dali-demo
 Summary:    The OpenGLES Canvas Core Demo
-Version:    1.0.30
+Version:    1.0.32
 Release:    1
 Group:      System/Libraries
 License:    Apache-2.0
@@ -15,7 +15,6 @@ Requires: dali
 Requires: dali-adaptor
 Requires: dali-toolkit
 BuildRequires:  cmake
-BuildRequires:  boost-devel
 BuildRequires:  pkgconfig
 BuildRequires:  pkgconfig(capi-appfw-application)
 BuildRequires:  pkgconfig(capi-media-player)
similarity index 97%
rename from examples/shared/view.h
rename to shared/view.h
index 059240d..e13be63 100644 (file)
@@ -65,7 +65,7 @@ Dali::Layer CreateToolbar( Dali::Toolkit::ToolBar& toolBar,
   Dali::Layer toolBarLayer = Dali::Layer::New();
   toolBarLayer.SetAnchorPoint( Dali::AnchorPoint::TOP_CENTER );
   toolBarLayer.SetParentOrigin( Dali::ParentOrigin::TOP_CENTER );
-  toolBarLayer.ApplyConstraint( Dali::Constraint::New<Dali::Vector3>( Dali::Actor::SIZE, Dali::ParentSource( Dali::Actor::SIZE ), Dali::SourceWidthFixedHeight( style.mToolBarHeight  ) ) );
+  toolBarLayer.ApplyConstraint( Dali::Constraint::New<Dali::Vector3>( Dali::Actor::Property::Size, Dali::ParentSource( Dali::Actor::Property::Size ), Dali::SourceWidthFixedHeight( style.mToolBarHeight  ) ) );
   toolBarLayer.SetSize( 0.0f, style.mToolBarHeight );
 
   // Raise tool bar layer to the top.