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;h=89eb96ecaac2b25d9c159ae6530da7fa56e95d3e;hp=2583616fd49128db233dcbf25509426408b86425;hb=445245be5ed13b969aaa0bd87647f3386f24d3eb;hpb=da0b26956ee6258765ff541e1b8057557a37144b diff --git a/dali-toolkit/internal/controls/scrollable/bouncing-effect-actor.cpp b/dali-toolkit/internal/controls/scrollable/bouncing-effect-actor.cpp index 2583616..89eb96e 100644 --- a/dali-toolkit/internal/controls/scrollable/bouncing-effect-actor.cpp +++ b/dali-toolkit/internal/controls/scrollable/bouncing-effect-actor.cpp @@ -19,13 +19,13 @@ #include // EXTERNAL INCLUDES -#include -#include #include -#include #include -#include -#include +#include +#include +#include +#include +#include namespace Dali { @@ -63,7 +63,7 @@ uniform lowp vec4 uColor;\n void main()\n {\n gl_FragColor = uColor;\n -}\n; +}\n ); } // namespace Anon @@ -102,7 +102,7 @@ Actor CreateBouncingEffectActor( Property::Index& bouncePropertyIndex ) unsigned int indexData[18] = { 0,3,1,0,2,3,4,7,5,4,6,7,8,11,9,8,10,11 }; Property::Map indexFormat; - indexFormat["indices"] = Property::UNSIGNED_INTEGER; + indexFormat["indices"] = Property::INTEGER; PropertyBuffer indices = PropertyBuffer::New( indexFormat, 18u ); indices.SetData( indexData ); @@ -122,8 +122,7 @@ Actor CreateBouncingEffectActor( Property::Index& bouncePropertyIndex ) meshActor.AddRenderer( renderer ); // Register property - bouncePropertyIndex = meshActor.RegisterProperty("bounce-coefficient", 0.f); - meshActor.AddUniformMapping( bouncePropertyIndex, "uBounceCoefficient" ); + bouncePropertyIndex = meshActor.RegisterProperty("uBounceCoefficient", 0.f); return meshActor; }