BouncingEffect for overscroll
authorXiangyin Ma <x1.ma@samsung.com>
Wed, 7 May 2014 13:05:41 +0000 (14:05 +0100)
committerAdeel Kazmi <adeel.kazmi@samsung.com>
Thu, 15 May 2014 11:53:23 +0000 (12:53 +0100)
commit779979dab4e38704856e94e58d9e3e2ce4bb6a6d
tree96d8b2633bf8997bf063d32e5516d6bfe7b8f5ef
parent97883e9fed0eb60d89bc63810d36ddeee1e16314
BouncingEffect for overscroll

[Issue] N/A
[Problem] new feature
[Cause] N/A
[Solution] the overscroll effect implemented with shader

test codes:
    ImageActor imageActor = ImageActor::New( BitmapImage::New( 1, 1 ) );
    imageActor.SetSize(720.f,58.f);
    Toolkit::BouncingEffect bouncingEffect = Toolkit::BouncingEffect::New( Vector4(0.f,1.f,1.f,0.5f) );
    imageActor.SetShaderEffect( bouncingEffect );
    imageActor.SetParentOrigin( ParentOrigin::CENTER );
    Stage::GetCurrent().Add( imageActor );

    Animation animation = Animation::New(1.f);
    animation.AnimateTo( Property( bouncingEffect, bouncingEffect.GetProgressRatePropertyName() ), 1.f,
                         AlphaFunctions::Bounce );
    animation.Play();

Signed-off-by: Xiangyin Ma <x1.ma@samsung.com>
base/dali-toolkit/public-api/file.list
base/dali-toolkit/public-api/shader-effects/bouncing-effect.cpp [new file with mode: 0644]
base/dali-toolkit/public-api/shader-effects/bouncing-effect.h [new file with mode: 0644]
build/slp/dali-toolkit/Makefile.am
optional/dali-toolkit/dali-toolkit.h