Files
JiboOs/docs/rendering/tasks/CompressedImageTask.js

32 lines
1.2 KiB
JavaScript
Raw Normal View History

2026-03-16 13:53:01 +02:00
/**
* Loads an image and sets it up for Pixi to use as a PIXI.Texture.
* @class CompressedImageTask
* @memberof jibo.loader
* @private
* @param {String} asset.src The texture image path. Must end in .dds or .crn
* @param {Boolean} [asset.remote=false] `true` to force a remote download over XMLHttpRequest.
* @param {Number} [asset.timeout=0] Number of milliseconds for remote load to timeout.
* @param {Boolean|String} [asset.cache=false] `true` to cache the result. String to add to a specific cache.
* @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.CompressedImageTask.test
* @static
* @param {Object} asset The asset to test.
* @return {Boolean} `true` if the asset qualifies for this task.
*/
/**
* The atlas source path.
* @name jibo.loader.CompressedImageTask#src
* @type {String}
*/
/**
* Starts the load.
* @method jibo.loader.CompressedImageTask#start
* @param {jibo.loader.Task~completeCallback} callback Callback to call when the load is done
*/