Merge "Changed buttons example to use ImageView." into devel/master
[platform/core/uifw/dali-demo.git] / examples / radial-menu / radial-sweep-view-impl.cpp
index 1647b26..9c791c7 100644 (file)
@@ -17,6 +17,7 @@
 
 #include "radial-sweep-view-impl.h"
 
+#include <dali/devel-api/rendering/renderer.h>
 #include <sstream>
 
 using namespace Dali;
@@ -335,7 +336,7 @@ void RadialSweepViewImpl::CreateStencil( Radian initialSector )
 
   unsigned int indexData[15] = { 0,1,2,0,2,3,0,3,4,0,4,5,0,5,6 };
   Property::Map indexFormat;
-  indexFormat["indices"] = Property::UNSIGNED_INTEGER;
+  indexFormat["indices"] = Property::INTEGER;
   PropertyBuffer indices = PropertyBuffer::New( indexFormat, 15u );
   indices.SetData( indexData );
 
@@ -357,10 +358,8 @@ void RadialSweepViewImpl::CreateStencil( Radian initialSector )
   mStencilActor.SetSize(1.f, 1.f);
 
   // register properties
-  mStartAngleIndex = mStencilActor.RegisterProperty("start-angle", 0.f);
-  mStencilActor.AddUniformMapping( mStartAngleIndex, "uStartAngle " );
-  mRotationAngleIndex = mStencilActor.RegisterProperty("rotation-angle", initialSector.radian);
-  mStencilActor.AddUniformMapping( mRotationAngleIndex, "uRotationAngle" );
+  mStartAngleIndex = mStencilActor.RegisterProperty("uStartAngle", 0.f);
+  mRotationAngleIndex = mStencilActor.RegisterProperty("uRotationAngle", initialSector.radian);
 
   mStencilActor.SetDrawMode( DrawMode::STENCIL );
   mStencilActor.SetPositionInheritanceMode(USE_PARENT_POSITION);