SpineRenderUpdater used for updating animation render data and skin rendering.

SpineRenderUpdater 类用于更新动画渲染数据和皮肤渲染。

构造函数

属性

cacheMaterials: Material[][] = []

An array to cache materials for different render states. Each inner array represents a set of materials for a specific render state.

用于缓存不同渲染状态的材质数组。 每个内部数组代表一个特定渲染状态的材质集合。

currentData: SkinAniRenderData = null

The current skin animation render data.

当前皮肤动画渲染数据。

currentFrameIndex: number = -1

The current key frame index.

当前关键帧索引。

currentMaterials: Material[] = []

Array of current materials.

当前材质数组。

name: string

The name of the animation.

动画的名称。

needUpdate: boolean = true

The owner of this SpineRenderUpdater.

此 SpineRenderUpdater 的所有者。

state: AnimationState = null

The animation state.

动画状态。

updateBones: ((delta: number, bones: Bone[], boneMat: Float32Array, ofx: number, ofy: number) => void)
vChanges: IVBChange[] = []

访问器

方法

  • 参数

    • bones: Bone[]

      The bones to render.

    • slots: Slot[]

      The slots to render.

    • curTime: number

      The current animation time.

    • boneMat: Float32Array

      The bone matrix.

    • ofx: number

      偏移x。

    • ofy: number

      偏移y。

    返回 void

    Renders the animation with matrix transformation.

    进行矩阵变换的动画渲染。

  • 参数

    • delta: number

      时间增量。

    • bones: Bone[]

      骨骼数组。

    • boneMat: Float32Array

      骨骼矩阵数组。

    • ofx: number = 0

      偏移x。

    • ofy: number = 0

      偏移y。

    返回 void

    使用缓存数据更新骨骼矩阵。

    Updates bone matrices using cached data.

  • 参数

    • delta: number

      时间增量。

    • bones: Bone[]

      骨骼数组。

    • boneMat: Float32Array

      骨骼矩阵数组。

    • ofx: number = 0

      偏移x。

    • ofy: number = 0

      偏移y。

    返回 void

    使用缓存数据更新骨骼矩阵。

    Updates bone matrices using cached data.

  • 参数

    • boneFrames: Float32Array[][]

      Array of bone frame data.

    • frames: number

      Frame number.

    • boneMat: Float32Array

      Bone matrix array.

    • ofx: number = 0
    • ofy: number = 0

    返回 void

    Update bone cache.

    更新骨骼缓存。