Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface IGLTFDefaultDataSource

Hierarchy

  • IGLTFDefaultDataSource

Index

Methods

  • getArrayBuffer(glTFSrc: string | number, binarySrc: string | number, ok: Function, error: Function): void
  • Gets glTF binary attachment.

    Note that this method requires the source of the glTF JSON asset. This is because the binary attachment source could be relative to the glTF source, IE. it may not be a global ID.

    Parameters

    • glTFSrc: string | number

      Identifies the glTF JSON asset.

    • binarySrc: string | number

      Identifies the glTF binary asset.

    • ok: Function

      Fired on successful loading of the glTF binary asset.

    • error: Function

      Fired on error while loading the glTF binary asset.

    Returns void

  • getGLTF(glTFSrc: string | number, ok: Function, error: Function): void
  • Gets glTF JSON.

    Parameters

    • glTFSrc: string | number

      Identifies the glTF JSON asset.

    • ok: Function

      Fired on successful loading of the glTF JSON asset.

    • error: Function

      Fired on error while loading the glTF JSON asset.

    Returns void

  • getMetaModel(metaModelSrc: string | number, ok: Function, error: Function): void
  • Gets metamodel JSON.

    Parameters

    • metaModelSrc: string | number

      Identifies the metamodel JSON asset.

    • ok: Function

      Fired on successful loading of the metamodel JSON asset.

    • error: Function

      Fired on error while loading the metamodel JSON asset.

    Returns void

Generated using TypeDoc