#include "radial-sweep-view-impl.h"
+#include <dali/devel-api/rendering/renderer.h>
#include <sstream>
using namespace Dali;
vertexFormat["aAngleIndex"] = Property::FLOAT;
vertexFormat["aPosition1"] = Property::VECTOR2;
vertexFormat["aPosition2"] = Property::VECTOR2;
- PropertyBuffer vertices = PropertyBuffer::New( PropertyBuffer::STATIC, vertexFormat, 7u );
+ PropertyBuffer vertices = PropertyBuffer::New( vertexFormat, 7u );
vertices.SetData( vertexData );
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;
- PropertyBuffer indices = PropertyBuffer::New( PropertyBuffer::STATIC, indexFormat, 15u );
+ indexFormat["indices"] = Property::INTEGER;
+ PropertyBuffer indices = PropertyBuffer::New( indexFormat, 15u );
indices.SetData( indexData );
Geometry meshGeometry = Geometry::New();
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);