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 - pixi/extras/PIXISpine.js, line 6
Methods
-
load(page, file)
-
Starts loading a base texture as per spine specification
Parameters:
Name Type Description pagespineAtlasPage Atlas page to which texture belongs
fileString The file to load, this is just the file path relative to the base path configured in the constructor
- Source - pixi/extras/PIXISpine.js, line 27
-
unload(texture)
-
Unloads a previously loaded texture as per spine specification
Parameters:
Name Type Description texturePIXI.BaseTexture Texture object to destroy
- Source - pixi/extras/PIXISpine.js, line 51
