API

Type Alias PrepareTextureProcessFunction

PrepareTextureProcessFunction: (
    width: number,
    height: number,
    img: HTMLImageElement | ImageBitmap | { height: number; width: number },
    extension: string,
    texture: InternalTexture,
    continuationCallback: () => void,
) => boolean

Type Declaration

    • (
          width: number,
          height: number,
          img: HTMLImageElement | ImageBitmap | { height: number; width: number },
          extension: string,
          texture: InternalTexture,
          continuationCallback: () => void,
      ): boolean
    • Parameters

      • width: number
      • height: number
      • img: HTMLImageElement | ImageBitmap | { height: number; width: number }
      • extension: string
      • texture: InternalTexture
      • continuationCallback: () => void

      Returns boolean