threepipe
Version:
A 3D viewer framework built on top of three.js in TypeScript with a focus on quality rendering, modularity and extensibility.
22 lines • 990 B
TypeScript
import { ThreeViewer } from '../../viewer';
import { ILoader, Importer } from '../../assetmanager';
import { KTX2Loader } from 'three/examples/jsm/loaders/KTX2Loader.js';
import { CompressedTexture } from 'three';
import { BaseImporterPlugin } from '../base/BaseImporterPlugin';
/**
* Adds support for loading Compressed Textures of format `.ktx2`, `image/ktx2` files and data uris.
* @category Plugins
*/
export declare class KTX2LoadPlugin extends BaseImporterPlugin {
static readonly PluginType = "KTX2LoadPlugin";
protected _importer: Importer<KTX2Loader2>;
static TRANSCODER_LIBRARY_PATH: string;
onAdded(viewer: ThreeViewer): void;
onRemove(viewer: ThreeViewer): void;
}
export declare class KTX2Loader2 extends KTX2Loader implements ILoader {
private _initTexture;
createTexture(buffer: ArrayBuffer, config: any): Promise<CompressedTexture>;
}
export declare const KHR_TEXTURE_BASISU = "KHR_texture_basisu";
//# sourceMappingURL=KTX2LoadPlugin.d.ts.map