Hierarchy

  • SpriteBatchWebGpu

Implements

Constructors

Properties

Methods

Constructors

  • Parameters

    • context: WebGpuRendererContext
    • id: string
    • capacity: number
    • depthOffset: number
    • yOffset: number
    • enableAlphaMultiplcation: boolean
    • enforceBeginAndEnd: boolean

    Returns SpriteBatchWebGpu

Properties

capacity: number
id: string

Methods

  • Parameters

    • tileX: number
    • tileY: number
    • spriteSize: number
    • sourceX: number
    • sourceY: number
    • sourceSize: number
    • offsetX: number = 0
    • offsetY: number = 0
    • red: number = 255
    • green: number = 255
    • blue: number = 255
    • alpha: number = 255

    Returns undefined | number

  • Returns void

  • Returns void

  • Returns number

  • Parameters

    • index: number

    Returns boolean

  • Parameters

    • x: number
    • y: number
    • tileScale: number
    • viewportWidth: number
    • viewportHeight: number
    • Optional blend: boolean

    Returns void

  • Parameters

    • index: number
    • tileX: number
    • tileY: number
    • spriteSize: number
    • sourceX: number
    • sourceY: number
    • sourceSize: number
    • Optional offsetX: number
    • Optional offsetY: number
    • Optional red: number
    • Optional green: number
    • Optional blue: number
    • Optional alpha: number

    Returns void

Generated using TypeDoc