#include <dali-toolkit/public-api/shader-effects/motion-stretch-effect.h>
// EXTERNAL INCLUDES
+#include <dali/public-api/animation/constraint.h>
#include <dali/public-api/animation/constraints.h>
namespace Dali
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<Matrix>( uModelProperty,
- Source( renderable, Actor::WORLD_MATRIX ),
- EqualToConstraint() );
+ Constraint constraint = Constraint::New<Matrix>( newEffect, uModelProperty, EqualToConstraint() );
+ constraint.AddSource( Source( renderable, Actor::Property::WORLD_MATRIX ) );
// and set up constraint.
- newEffect.ApplyConstraint(constraint);
+ constraint.Apply();
return newEffect;
}