- BoneContainer bones(0); // passed empty as bones not required
- mHighlightMeshData.SetData( vertices, faceIndices, bones, mHighlightMaterial );
- mHighlightMesh.UpdateMeshData( mHighlightMeshData );
+ PropertyBuffer quadVertices = PropertyBuffer::New( mQuadVertexFormat, vertices.Size() );
+ PropertyBuffer quadIndices = PropertyBuffer::New( mQuadIndexFormat, indices.Size() );
+
+ quadVertices.SetData( &vertices[ 0 ] );
+ quadIndices.SetData( &indices[ 0 ] );
+
+ Geometry quadGeometry = Geometry::New();
+ quadGeometry.AddVertexBuffer( quadVertices );
+ quadGeometry.SetIndexBuffer( quadIndices );
+
+ // if ( mHighlightRenderer )
+ // {
+ // mHighlightRenderer.SetGeometry( quadGeometry );
+ // }
+ // else
+ // {
+ mHighlightRenderer = Dali::Renderer::New( quadGeometry, mHighlightMaterial );
+ mHighlightRenderer.SetDepthIndex( DECORATION_DEPTH_INDEX - 1 );
+ // }
+ mHighlightActor.AddRenderer( mHighlightRenderer );