Files
SpineViewer/Spine/Interfaces/Attachments/ISkinnedMeshAttachment.cs
2025-10-01 16:35:51 +08:00

53 lines
1.3 KiB
C#

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 ISkinnedMeshAttachment : IAttachment
{
/// <summary>
/// R
/// </summary>
public float R { get; set; }
/// <summary>
/// G
/// </summary>
public float G { get; set; }
/// <summary>
/// B
/// </summary>
public float B { get; set; }
/// <summary>
/// A
/// </summary>
public float A { get; set; }
/// <summary>
/// 用于渲染的纹理对象
/// </summary>
public SFML.Graphics.Texture RendererObject { get; }
/// <summary>
/// 顶点纹理坐标, 每个坐标有 u 和 v 两个数, 有效长度和 <see cref="IAttachment.ComputeWorldVertices(ISlot, ref float[])"/> 返回值一致
/// </summary>
public float[] UVs { get; }
/// <summary>
/// 三角形索引顶点数组, 每 3 个为一组, 指向顶点的下标 (不是顶点坐标数组下标)
/// </summary>
public int[] Triangles { get; }
/// <summary>
/// 边缘顶点数组长度
/// </summary>
public int HullLength { get; }
}
}