@babylonjs/core
Version:
Getting started? Play directly with the Babylon.js API using our [playground](https://playground.babylonjs.com/). It also contains a lot of samples to learn how to use it.
40 lines (39 loc) • 2.21 kB
TypeScript
import type { Nullable } from "../../../types.js";
import type { InternalTexture } from "../internalTexture.js";
import type { IInternalTextureLoader } from "./internalTextureLoader.js";
/**
* Inspired by https://github.com/sciecode/three.js/blob/dev/examples/jsm/loaders/EXRLoader.js
* Referred to the original Industrial Light & Magic OpenEXR implementation and the TinyEXR / Syoyo Fujita
* implementation.
*/
/**
* Loader for .exr file format
* @see [PIZ compression](https://playground.babylonjs.com/#4RN0VF#151)
* @see [ZIP compression](https://playground.babylonjs.com/#4RN0VF#146)
* @see [RLE compression](https://playground.babylonjs.com/#4RN0VF#149)
* @see [PXR24 compression](https://playground.babylonjs.com/#4RN0VF#150)
* @internal
*/
export declare class _ExrTextureLoader implements IInternalTextureLoader {
/**
* Defines whether the loader supports cascade loading the different faces.
*/
readonly supportCascades = false;
/**
* Uploads the cube texture data to the WebGL texture. It has already been bound.
* @param _data contains the texture data
* @param _texture defines the BabylonJS internal texture
* @param _createPolynomials will be true if polynomials have been requested
* @param _onLoad defines the callback to trigger once the texture is ready
* @param _onError defines the callback to trigger in case of error
* Cube texture are not supported by .exr files
*/
loadCubeData(_data: ArrayBufferView | ArrayBufferView[], _texture: InternalTexture, _createPolynomials: boolean, _onLoad: Nullable<(data?: any) => void>, _onError: Nullable<(message?: string, exception?: any) => void>): void;
/**
* Uploads the 2D texture data to the WebGL texture. It has already been bound once in the callback.
* @param data contains the texture data
* @param texture defines the BabylonJS internal texture
* @param callback defines the method to call once ready to upload
*/
loadData(data: ArrayBufferView, texture: InternalTexture, callback: (width: number, height: number, loadMipmap: boolean, isCompressed: boolean, done: () => void, failedLoading?: boolean) => void): Promise<void>;
}