import {GLTFDefaultDataSource} from '@xeokit/xeokit-sdk/src/plugins/GLTFLoaderPlugin/GLTFDefaultDataSource.js'
GLTFDefaultDataSource
Default data access strategy for GLTFLoaderPlugin.
This just loads assets using XMLHttpRequest.
Constructor Summary
Public Constructor | ||
public |
|
Member Summary
Public Members | ||
public |
cacheBuster: * |
Method Summary
Public Methods | ||
public |
Gets glTF binary attachment. |
|
public |
Gets binary glTF file. |
|
public |
Gets glTF JSON. |
|
public |
getMetaModel(metaModelSrc: String | Number, ok: Function, error: Function) Gets metamodel JSON. |
Public Constructors
public constructor() source
Public Members
public cacheBuster: * source
Public Methods
public getArrayBuffer(glTFSrc: String | Number, binarySrc: String | Number, ok: Function, error: Function) source
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.