computeWorldVertices method

List<double> computeWorldVertices(
  1. Slot slot
)

Implementation

List<double> computeWorldVertices(Slot slot) {
  final worldVerticesLength = _bindings.spine_vertex_attachment_get_world_vertices_length(_attachment.cast());
  Pointer<Float> vertices = _allocator.allocate(4 * worldVerticesLength).cast();
  _bindings.spine_vertex_attachment_compute_world_vertices(_attachment.cast(), slot._slot, vertices);
  final result = vertices.asTypedList(worldVerticesLength).toList();
  _allocator.free(vertices);
  return result;
}