@cesium/engine
Version:
CesiumJS is a JavaScript library for creating 3D globes and 2D maps in a web browser without a plugin.
57 lines (56 loc) • 1.07 kB
JavaScript
/**
* The {@link ResourceLoader} state.
*
* @private
*/
const ResourceLoaderState = {
/**
* The resource has not yet been loaded.
*
* @type {number}
* @constant
* @private
*/
UNLOADED: 0,
/**
* The resource is loading. In this state, external resources are fetched as needed.
*
* @type {number}
* @constant
* @private
*/
LOADING: 1,
/**
* The resource has finished loading, but requires further processing.
*
* @type {number}
* @constant
* @private
*/
LOADED: 2,
/**
* The resource is processing. GPU resources are allocated in this state as needed.
*
* @type {Number}
* @constant
* @private
*/
PROCESSING: 3,
/**
* The resource has finished loading and processing; the results are ready to be used.
*
* @type {number}
* @constant
* @private
*/
READY: 4,
/**
* The resource loading or processing has failed due to an error.
*
* @type {number}
* @constant
* @private
*/
FAILED: 5,
};
export default Object.freeze(ResourceLoaderState);