Base class for implementing loaders.

Hierarchy (view full)

Constructors

Properties

crossOrigin: string
'anonymous'
path: string
''
requestHeader: {
    [header: string]: string;
}
{}
resourcePath: string
''
withCredentials: boolean
false
DEFAULT_MATERIAL_NAME: string

Methods

  • Parameters

    • url: string
    • OptionalonLoad: ((data: DataTexture, texData: object) => void)
        • (data, texData): void
        • Parameters

          Returns void

    • OptionalonProgress: ((event: ProgressEvent<EventTarget>) => void)
        • (event): void
        • Parameters

          • event: ProgressEvent<EventTarget>

          Returns void

    • OptionalonError: ((err: unknown) => void)
        • (err): void
        • Parameters

          • err: unknown

          Returns void

    Returns DataTexture

  • Parameters

    • url: string
    • OptionalonProgress: ((event: ProgressEvent<EventTarget>) => void)
        • (event): void
        • Parameters

          • event: ProgressEvent<EventTarget>

          Returns void

    Returns Promise<DataTexture>

  • Parameters

    • crossOrigin: string

    Returns this

  • Parameters

    • path: string

    Returns this

  • Parameters

    • requestHeader: {
          [header: string]: string;
      }
      • [header: string]: string

    Returns this

  • Parameters

    • resourcePath: string

    Returns this

  • Parameters

    • value: boolean

    Returns this