PIXI. SpineTextureLoader

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
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 - 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 - pixi/extras/PIXISpine.js, line 51
Phaser Copyright © 2012-2014 Photon Storm Ltd.
Documentation generated by JSDoc 3.3.0-dev on Tue Nov 25 2014 00:18:23 GMT-0000 (GMT) using the DocStrap template.