34935-vm/assets/cesium/packages/engine/Source/Scene/SupportedImageFormats.js
Flatlogic Bot 055d24df95 WORKING
2025-10-14 02:37:44 +00:00

19 lines
656 B
JavaScript

import defaultValue from "../Core/defaultValue.js";
/**
* Image formats supported by the browser.
*
* @param {object} [options] Object with the following properties:
* @param {boolean} [options.webp=false] Whether the browser supports WebP images.
* @param {boolean} [options.basis=false] Whether the browser supports compressed textures required to view KTX2 + Basis Universal images.
*
* @private
*/
function SupportedImageFormats(options) {
options = defaultValue(options, defaultValue.EMPTY_OBJECT);
this.webp = defaultValue(options.webp, false);
this.basis = defaultValue(options.basis, false);
}
export default SupportedImageFormats;