Options
All
  • Public
  • Public/Protected
  • All
Menu

Class AnimationCache

Hierarchy

  • AnimationCache

Index

Constructors

constructor

Properties

Protected _animationName

_animationName: string | null = null

Protected _enableCacheAttachedInfo

_enableCacheAttachedInfo: boolean = false

Protected _frameIdx

_frameIdx: number = -1

Protected _inited

_inited: boolean = false

Protected _invalid

_invalid: boolean = true

_privateMode

_privateMode: boolean = false

Protected _skeletonInfo

_skeletonInfo: SkeletonCacheItemInfo | null = null

Protected _tempBoneInfos

_tempBoneInfos: FrameBoneInfo[] | null = null

Protected _tempColors

_tempColors: FrameColor[] | null = null

Protected _tempSegments

_tempSegments: FrameSegment[] | null = null

frames

frames: AnimationFrame[] = []

isCompleted

isCompleted: boolean = false

totalTime

totalTime: number = 0

Methods

Private setVerticeColor

  • setVerticeColor(colorI32: number, buffer: Float32Array, offset: number): void

begin

  • begin(): void

bind

clear

  • clear(): void

enableCacheAttachedInfo

  • enableCacheAttachedInfo(): void

end

  • end(): void

fillVertices

  • fillVertices(skeletonColor: Color, attachmentColor: Color, slotColor: Color, clipper: SkeletonClipping, slot: Slot): void
  • Parameters

    • skeletonColor: Color
    • attachmentColor: Color
    • slotColor: Color
    • clipper: SkeletonClipping
    • slot: Slot

    Returns void

init

invalidAllFrame

  • invalidAllFrame(): void

isInited

  • isInited(): boolean

isInvalid

  • isInvalid(): boolean

Protected needToUpdate

  • needToUpdate(toFrameIdx?: undefined | number): boolean

Protected traverseSkeleton

  • traverseSkeleton(skeleton: Skeleton, clipper: SkeletonClipping): void

unbind

updateAllFrame

  • updateAllFrame(): void

Protected updateFrame

  • updateFrame(skeleton: Skeleton, clipper: SkeletonClipping, index: number): void

updateToFrame

  • updateToFrame(toFrameIdx?: undefined | number): void

Generated using TypeDoc