UNPKG

mdx-m3-viewer

Version:

A browser WebGL model viewer. Mainly focused on models of the games Warcraft 3 and Starcraft 2.

18 lines (17 loc) 633 B
import Texture from './texture'; import { HandlerResourceData } from './handlerresource'; /** * Checks if the given source is a supported image texture source. */ export declare function isImageSource(src: unknown): boolean; /** * Detects whether the given buffer is a supported format, and if so returns the mime. * The supported formats are PNG, JPEG, GIF, and WebP. */ export declare function detectMime(buffer: Uint8Array): string; /** * A texture handler for image sources. */ export declare class ImageTexture extends Texture { constructor(src: TexImageSource, resourceData: HandlerResourceData); }