Class: TextureLoader

PSV.services~TextureLoader

new 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 ()

Cancels current HTTP requests

destroy () inherited overrides

Destroys the service

loadTexture (panorama, newPanoData)Promise.<PSV.TextureData> package

Loads the panorama texture(s)

Name Type Description
panorama string | Array.<string> | PSV.Cubemap
newPanoData PSV.PanoData | PSV.PanoDataProvider optional
Throws:

when the image cannot be loaded

Type
PSV.PSVError
Returns:
Type Description
Promise.<PSV.TextureData>

preloadPanorama (panorama)Promise

Preload a panorama file without displaying it

Name Type Description
panorama string
Returns:
Type Description
Promise