Options
All
  • Public
  • Public/Protected
  • All
Menu

Class _BasisTextureLoader

Loader for .basis file format

Hierarchy

  • _BasisTextureLoader

Implements

Index

Properties

Readonly supportCascadesSearch playground for supportCascades

supportCascades: false = false

Defines whether the loader supports cascade loading the different faces.

Methods

canLoadSearch playground for canLoad

  • canLoad(extension: string): boolean
  • This returns if the loader support the current file information.

    Parameters

    • extension: string

      defines the file extension of the file being loaded

    Returns boolean

    true if the loader can load the specified file

loadCubeDataSearch playground for loadCubeData

  • loadCubeData(data: ArrayBufferView | ArrayBufferView[], texture: InternalTexture, createPolynomials: boolean, onLoad: Nullable<(data?: any) => void>, onError: Nullable<(message?: string, exception?: any) => void>): void
  • Uploads the cube texture data to the WebGL texture. It has already been bound.

    Parameters

    • data: ArrayBufferView | ArrayBufferView[]

      contains the texture data

    • texture: InternalTexture

      defines the BabylonJS internal texture

    • createPolynomials: boolean

      will be true if polynomials have been requested

    • onLoad: Nullable<(data?: any) => void>

      defines the callback to trigger once the texture is ready

    • onError: Nullable<(message?: string, exception?: any) => void>

      defines the callback to trigger in case of error

    Returns void

loadDataSearch playground for loadData

  • loadData(data: ArrayBufferView, texture: InternalTexture, callback: (width: number, height: number, loadMipmap: boolean, isCompressed: boolean, done: () => void, failedLoading?: boolean) => void): void
  • Uploads the 2D texture data to the WebGL texture. It has already been bound once in the callback.

    Parameters

    • data: ArrayBufferView

      contains the texture data

    • texture: InternalTexture

      defines the BabylonJS internal texture

    • callback: (width: number, height: number, loadMipmap: boolean, isCompressed: boolean, done: () => void, failedLoading?: boolean) => void

      defines the method to call once ready to upload

        • (width: number, height: number, loadMipmap: boolean, isCompressed: boolean, done: () => void, failedLoading?: boolean): void
        • Parameters

          • width: number
          • height: number
          • loadMipmap: boolean
          • isCompressed: boolean
          • done: () => void
              • (): void
              • Returns void

          • Optional failedLoading: boolean

          Returns void

    Returns void

Legend

  • Constructor
  • Property
  • Method
  • Property
  • Method
  • Inherited property
  • Inherited method
  • Static property
  • Static method