SpineInstanceBatch used for efficient rendering Spine instances.

SpineInstanceBatch 用于高效渲染 Spine 实例。

实现

  • IBatch2DProvider

构造函数

属性

_recoverList: FastSinglelist<SpineInstanceInfo> = ...

方法

  • 参数

    • list: FastSinglelist<IRenderElement2D>

      The list of render elements.

    • start: number

      The starting index in the list.

    • end: number

      The ending index in the list (inclusive).

    • 可选allowReorder: boolean

      Whether to allow reordering elements for better batching.

    返回 void

    Batch render elements according to IBatch2DProvider interface.

    根据 IBatch2DProvider 接口批量渲染元素。

  • 参数

    • info: SpineInstanceInfo

      The SpineInstanceInfo object.

    • nMatrixData: Float32Array

      The new matrix data.

    • simpleAnimatorData: Float32Array

      The new animator data.

    • instanceCount: number

      The number of instances.

    返回 void

    Update the instance buffer with new data.

    使用新数据更新实例缓冲区。