X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali-toolkit%2Fpublic-api%2Fshader-effects%2Fmotion-stretch-effect.cpp;h=9cde8159ec5df4efa4f146a62e7b59819023f2ed;hb=refs%2Fchanges%2F28%2F38928%2F2;hp=48dff1d1dac3c9975b200cd113e0fdb485290d08;hpb=57869973578f6a0b0f836d396c7232ddb8302c6b;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git diff --git a/dali-toolkit/public-api/shader-effects/motion-stretch-effect.cpp b/dali-toolkit/public-api/shader-effects/motion-stretch-effect.cpp index 48dff1d..9cde815 100644 --- a/dali-toolkit/public-api/shader-effects/motion-stretch-effect.cpp +++ b/dali-toolkit/public-api/shader-effects/motion-stretch-effect.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2014 Samsung Electronics Co., Ltd. + * Copyright (c) 2015 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. @@ -19,6 +19,7 @@ #include // EXTERNAL INCLUDES +#include #include namespace Dali @@ -93,19 +94,18 @@ MotionStretchEffect::~MotionStretchEffect() { } -MotionStretchEffect MotionStretchEffect::Apply( RenderableActor renderable ) +MotionStretchEffect MotionStretchEffect::Apply( ImageActor renderable ) { MotionStretchEffect newEffect = New(); renderable.SetShaderEffect( newEffect ); - Property::Index uModelProperty = newEffect.GetPropertyIndex( MOTION_STRETCH_MODELVIEW_LASTFRAME ); + Dali::Property::Index uModelProperty = newEffect.GetPropertyIndex( MOTION_STRETCH_MODELVIEW_LASTFRAME ); - Constraint constraint = Constraint::New( uModelProperty, - Source( renderable, Actor::WORLD_MATRIX ), - EqualToConstraint() ); + Constraint constraint = Constraint::New( newEffect, uModelProperty, EqualToConstraint() ); + constraint.AddSource( Source( renderable, Actor::Property::WORLD_MATRIX ) ); // and set up constraint. - newEffect.ApplyConstraint(constraint); + constraint.Apply(); return newEffect; }