Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

Implements

Index

Constructors

  • new AnimatedSprite(name: string, materialName: string, width?: number, height?: number, frameWidth?: number, frameHeight?: number, frameCount?: number, frameSequence?: number[]): AnimatedSprite

Properties

_assetHeight: number = 2
_assetLoaded: boolean = false
_assetWidth: number = 2
_buffer: undefined | GLBuffer
_currentFrame: number = 0
_currentTime: number = 0
_frameCount: number
_frameHeight: number
_frameSequence: number[]
_frameTime: number = 10
_frameUV: UVInfo[] = ...
_frameWidth: number
_height: number
_isPlaying: boolean = true
_material: undefined | Material
_materialName: undefined | string
_name: string
_origin: Vector3 = ...
_vertices: Vertex[] = ...
_width: number

Accessors

  • get currentFrame(): number
  • get frameCount(): number
  • get height(): number
  • get isPlaying(): boolean
  • get materialName(): string
  • get name(): string
  • get width(): number

Methods

  • calculateUV(): void
  • calculateVertices(): void
  • destroy(): void
  • load(): void
  • play(): void
  • recalculateVertices(): void
  • setFrame(frameNumber: number): void
  • setFrameOnce(frameNumber: number): void
  • setupFromMaterial(): void
  • stop(): void
  • update(delta: number): void
  • updateVerticies(): void

Generated using TypeDoc