Abstract class for creating vertex buffers in a spine skeleton animation system.

用于在spine骨骼动画系统中创建顶点缓冲区的抽象类。

层级 (查看完整内容)

构造函数

属性

_boneVtxCount: number = 4
boneRegistry: SpineBoneRegistry

Shared bone registry for managing bone index to ID mappings across all VBCreators of a SpineTemplet.

共享骨骼注册表,用于管理一个SpineTemplet的所有VBCreator之间的骨骼索引到ID映射。

localBoneIdIndexPairs: number[]

Local array of bone ID-index pairs used by this VBCreator. Format: [boneId, boneIndex, boneId, boneIndex, ...]

此VBCreator使用的骨骼ID-索引对的本地数组。 格式:[骨骼ID, 骨骼索引, 骨骼ID, 骨骼索引, ...]

localBoneIndexToId: Map<number, number>

Local map of bone index to bone ID used by this VBCreator. (Subset of boneRegistry)

此VBCreator使用的骨骼索引到骨骼ID的本地映射。(boneRegistry的子集)

maxVertexCount: number

The Max Length of the vertex buffer.

顶点缓冲区的最大长度。

slotVBMap: Map<number, Map<string, TAttamentPos>>

Map of slot ID to attachment position data.

插槽ID到附件位置数据的映射。

vb: Float32Array

Vertex buffer data.

顶点缓冲区数据。

vbLength: number

Length of the vertex buffer.

顶点缓冲区的长度。

vertexFlag: string

Vertex flag string defining the vertex format.

定义顶点格式的顶点标志字符串。

访问器

方法

  • 参数

    • attachmentParse: AttachmentParse

      Attachment parse data.

    • deform: number[]

      Deform data array.

    • offset: number

      Offset in the output array.

    • out: Float32Array

      Output array.

    返回 void

    Append deform data to the output array.

    将变形数据追加到输出数组。

  • 参数

    • boneIndex: number

      Bone index from spine skeleton.

    返回 number

    Bone ID.

    Get or register the bone ID for a given bone index. Registers the bone in both the shared registry and local tracking.

    获取或注册给定骨骼索引的骨骼ID。 在共享注册表和本地跟踪中都注册该骨骼。