forked from Jibo-Revival-Group/JiboOs
46 lines
1.5 KiB
JavaScript
46 lines
1.5 KiB
JavaScript
/**
|
|
* Loads an animation timeline with PixiAnimate.
|
|
* @class TimelineTask
|
|
* @memberof jibo.loader
|
|
* @private
|
|
* @param {String} asset.type Must be "texture" to signify that this asset should be parsed
|
|
* specifically for Pixi.js.
|
|
* @param {String} [asset.src] The texture image path.
|
|
* @param {Boolean} [asset.upload=false] Upload the GPU immediate after loading.
|
|
* @param {String} [asset.alpha] The alpha image path, if not using image property.
|
|
* @param {Boolean} [asset.cache=false] `true` to cache the result.
|
|
* @param {String} [asset.id] The ID of the task.
|
|
* @param {Function} [asset.complete] The callback to call when the load is completed.
|
|
*/
|
|
|
|
/**
|
|
* Tests if an asset should be loaded.
|
|
* @method jibo.loader.TimelineTask.test
|
|
* @static
|
|
* @param {Object} asset The asset to test.
|
|
* @return {Boolean} `true` if the asset qualifies for this task.
|
|
*/
|
|
|
|
/**
|
|
* The timeline source path.
|
|
* @name jibo.loader.TimelineTask#src
|
|
* @type {String}
|
|
*/
|
|
|
|
/**
|
|
* Texture are uploaded to the GPU immediately.
|
|
* @name jibo.loader.TimelineTask#upload
|
|
* @type {Boolean}
|
|
*/
|
|
|
|
/**
|
|
* Cause timeline to add an instance on load.
|
|
* @name jibo.loader.TimelineTask#instance
|
|
* @type {Boolean}
|
|
*/
|
|
|
|
/**
|
|
* Starts the load.
|
|
* @method jibo.loader.TimelineTask#start
|
|
* @param {jibo.loader.Task~completeCallback} callback Callback to call when the load is done
|
|
*/ |