using Spine.Interfaces; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Spine.Interfaces.Attachments { public interface IRegionAttachment : IAttachment { /// /// 总是将 Region 附件矩形区域切分成两个这样的三角形 /// private static readonly int[] _trangles = [0, 1, 2, 2, 3, 0]; /// /// R /// public float R { get; set; } /// /// G /// public float G { get; set; } /// /// B /// public float B { get; set; } /// /// A /// public float A { get; set; } /// /// 用于渲染的纹理对象 /// public SFML.Graphics.Texture RendererObject { get; } /// /// 顶点纹理坐标, 每个坐标有 u 和 v 两个数, 有效长度和 返回值一致 /// public float[] UVs { get; } /// /// 三角形索引顶点数组, 每 3 个为一组, 指向顶点的下标 (不是顶点坐标数组下标) /// public int[] Triangles => _trangles; } }