computeUVs static method

void computeUVs(
  1. TextureRegion? region,
  2. double x,
  3. double y,
  4. double scaleX,
  5. double scaleY,
  6. double rotation,
  7. double width,
  8. double height,
  9. ArrayFloat offset,
  10. ArrayFloat uvs,
)

Computes UVs and offsets for a region attachment.

uvs Output array for the computed UVs, length of 8. offset Output array for the computed vertex offsets, length of 8.

Implementation

static void computeUVs(TextureRegion? region, double x, double y, double scaleX, double scaleY, double rotation,
    double width, double height, ArrayFloat offset, ArrayFloat uvs) {
  SpineBindings.bindings.spine_region_attachment_compute_u_vs(region?.nativePtr.cast() ?? Pointer.fromAddress(0), x,
      y, scaleX, scaleY, rotation, width, height, offset.nativePtr.cast(), uvs.nativePtr.cast());
}