new SpineTextureLoader(basePath, crossorigin)
Supporting class to load images from spine atlases as per spine spec.
Parameters
Name | Type | Description |
---|---|---|
basePath |
String | Tha base path where to look for the images to be loaded |
crossorigin |
Boolean | Whether requests should be treated as crossorigin |
- Source code: pixi/extras/PIXISpine.js, line 6
Public Methods
-
load(page, file)
-
Starts loading a base texture as per spine specification
Parameters
Name Type Description page
spineAtlasPage Atlas page to which texture belongs
file
String The file to load, this is just the file path relative to the base path configured in the constructor
- Source code: pixi/extras/PIXISpine.js, line 27
-
unload(texture)
-
Unloads a previously loaded texture as per spine specification
Parameters
Name Type Description texture
PIXI.BaseTexture Texture object to destroy
- Source code: pixi/extras/PIXISpine.js, line 51