X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git;a=blobdiff_plain;f=dali-toolkit%2Finternal%2Fcontrols%2Fscrollable%2Fbouncing-effect-actor.cpp;fp=dali-toolkit%2Finternal%2Fcontrols%2Fscrollable%2Fbouncing-effect-actor.cpp;h=d78801a13bba35acb5e0ccf48aa4e1501ebf6450;hp=7225beb866f10c9ddf5daef43c278e638bf4dd53;hb=2071317d301e9d5af326a3a2efcd2996263fbead;hpb=dce1410985ef475d33554d7f48f2fff46433559b;ds=sidebyside diff --git a/dali-toolkit/internal/controls/scrollable/bouncing-effect-actor.cpp b/dali-toolkit/internal/controls/scrollable/bouncing-effect-actor.cpp index 7225beb..d78801a 100644 --- a/dali-toolkit/internal/controls/scrollable/bouncing-effect-actor.cpp +++ b/dali-toolkit/internal/controls/scrollable/bouncing-effect-actor.cpp @@ -38,14 +38,14 @@ namespace // Bouncing effect is presented by stacked three layers with same color and opacity const size_t NUM_LAYERS( 3 ); const Vector3 LAYER_HEIGHTS( 1.f, 27.f/42.f, 13.f/42.f); - +/* // use the actor color to paint every layer const char* MESH_FRAGMENT_SHADER = "void main()\n" "{\n" " gl_FragColor = uColor;\n" "}\n"; - +*/ // Constraint to move the vertices vertically struct VertexPositionConstraint { @@ -68,6 +68,8 @@ struct VertexPositionConstraint Actor CreateBouncingEffectActor( Property::Index& bouncePropertyIndex ) { + Actor meshActor; +/* Dali::AnimatableMesh mesh; Dali::MeshActor meshActor; @@ -110,7 +112,7 @@ Actor CreateBouncingEffectActor( Property::Index& bouncePropertyIndex ) constraint = Constraint::New( mesh, mesh.GetPropertyIndex(j+3, AnimatableVertex::Property::POSITION), VertexPositionConstraint(-0.5f, LAYER_HEIGHTS[i]) ); constraint.AddSource( Source(meshActor, bouncePropertyIndex) ); constraint.Apply(); - } + }*/ return meshActor; }