Property::Map curveVertexFormat;
curveVertexFormat["aPosition"] = Property::VECTOR2;
- mCurveVertices = VertexBuffer::New( curveVertexFormat );
+ mCurveVertices = PropertyBuffer::New( curveVertexFormat );
Vector2 vertexData[2] = { Vector2(-0.5f, 0.5f), Vector2( 0.5f, -0.5f ) };
mCurveVertices.SetData( vertexData, 2 );
return actor;
}
- Actor CreateControlLine( VertexBuffer vertexBuffer )
+ Actor CreateControlLine( PropertyBuffer vertexBuffer )
{
Actor line = Actor::New();
line.SetResizePolicy( ResizePolicy::FILL_TO_PARENT, Dimension::ALL_DIMENSIONS );
Property::Map lineVertexFormat;
lineVertexFormat["aPosition"] = Property::VECTOR2;
- mLine1Vertices = VertexBuffer::New( lineVertexFormat );
- mLine2Vertices = VertexBuffer::New( lineVertexFormat );
+ mLine1Vertices = PropertyBuffer::New( lineVertexFormat );
+ mLine2Vertices = PropertyBuffer::New( lineVertexFormat );
mControlLine1 = CreateControlLine( mLine1Vertices );
mControlLine2 = CreateControlLine( mLine2Vertices );
Timer mTimer;
Animation mDragAnimation;
Animation mBezierAnimation;
- VertexBuffer mCurveVertices;
- VertexBuffer mLine1Vertices;
- VertexBuffer mLine2Vertices;
+ PropertyBuffer mCurveVertices;
+ PropertyBuffer mLine1Vertices;
+ PropertyBuffer mLine2Vertices;
Vector2 mRelativeDragPoint;
Vector2 mLastControlPointPosition1;
Vector2 mLastControlPointPosition2;