@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.
29 lines (28 loc) • 1.49 kB
TypeScript
import type { Nullable } from "../../../types.js";
import type { InternalTexture } from "../../../Materials/Textures/internalTexture.js";
import type { IInternalTextureLoader } from "./internalTextureLoader.js";
/**
* Implementation of the DDS Texture Loader.
* @internal
*/
export declare class _DDSTextureLoader implements IInternalTextureLoader {
/**
* Defines whether the loader supports cascade loading the different faces.
*/
readonly supportCascades = true;
/**
* Uploads the cube texture data to the WebGL texture. It has already been bound.
* @param imgs contains the cube maps
* @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
*/
loadCubeData(imgs: ArrayBufferView | ArrayBufferView[], texture: InternalTexture, createPolynomials: boolean, onLoad: Nullable<(data?: 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) => void): void;
}