Class: TextureLoader

PSV.services.TextureLoader

new PSV.services.TextureLoader (psv)

Texture loader

Name Type Description
psv PSV.Viewer

Extends

Members

config PSV.Options readonly inherited overrides

Configuration holder

prop Object readonly inherited overrides

Properties holder

Reference to main controller

Methods

abortLoading () package

Cancels current HTTP requests

destroy () inherited overrides

Destroys the service

loadFile (url, onProgress)Promise.<Blob>

Loads a Blob with FileLoader

Name Type Description
url string
onProgress function optional
Returns:
Type Description
Promise.<Blob>

loadImage (url, onProgress)Promise.<HTMLImageElement>

Loads an Image using FileLoader to have progress events

Name Type Description
url string
onProgress function optional
Returns:
Type Description
Promise.<HTMLImageElement>

preloadPanorama (panorama)Promise

Preload a panorama file without displaying it

Name Type Description
panorama *
Returns:
Type Description
Promise