import { Scene } from "@babylonjs/core/scene"; import { AbstractEngine } from "@babylonjs/core/Engines/abstractEngine"; import { SceneLoaderQualitySelector } from "../loading/loader"; /** * Sets wether or not to use KTX2 compressed textures in the application (disabled by default). * When enabled, the application will try to load KTX2 textures instead of the original textures when possible, and will ignore any KTX2 texture when disabled. * @param enabled defines wether or not to use KTX2 compressed textures in the application. */ export declare function setUseKtx2CompressedTextures(enabled: boolean): void; /** * Returns wether or not KTX2 compressed textures are enabled in the application. */ export declare function isUsingKtx2CompressedTextures(): boolean; /** * @internal */ export declare function _getKtx2TextureName(name: string): string; /** * Set the compressed texture format to use, based on the formats you have, and the formats * supported by the hardware / browser. * @param engine defines the reference to the engine to configure the texture format to use. * @see `@babylonjs/core/Engines/Extensions/engine.textureSelector.d.ts` for more information. */ export declare function configureEngineToUseCompressedTextures(engine: AbstractEngine): void; /** * Adds the texture located at the given URL to the list of excluded compressed textures. * Which means it will not be loaded as a compressed texture even if it has a supported format and the hardware supports it. * @param engine defines the reference to the engine to register the excluded texture. * @param textureUrl defines the URL of the texture to exclude */ export declare function addExcludedCompressedTexture(engine: AbstractEngine, textureUrl: string): void; /** * Updates URL of all textures in the scene to match the given quality when possible. * @param quality defines the quality to apply to the textures. * @param scene defines the scene to update the textures in. * @param rootUrl defines the root URL to use when updating the texture URLs. * @see `SceneLoaderQualitySelector` for more information on the available quality levels. */ export declare function applyTexturesQuality(quality: SceneLoaderQualitySelector, scene: Scene, rootUrl: string): void; /** * Gets the URL suffix to use for a texture based on the scene's loading texture quality and the texture's metadata. * @param sourceProperty defines the texture to get the suffix for. Can be a texture or a texture serialization object. * @param scene defines the scene to get the loading texture quality from. * @returns the URL to use for the texture, or the original texture name if no suffix should be applied. */ export declare function getTextureUrl(sourceProperty: any, scene: Scene): any;