UNPKG

the-world-engine

Version:

three.js based, unity like game engine for browser

30 lines (29 loc) 827 B
/** * async image loader utility */ export declare class AsyncImageLoader { /** * load image from path * @param url image url * @returns loaded image */ static loadImageFromPath(url: string): Promise<HTMLImageElement>; /** * load images from urls * @param urls image urls * @returns loaded images */ static loadImagesFromPath(urls: string[]): Promise<HTMLImageElement[]>; /** * load image from unloaded image * @param image unloaded image * @returns loaded image */ static loadImage(image: HTMLImageElement): Promise<HTMLImageElement>; /** * load images from unloaded images * @param images unloaded images * @returns loaded images */ static loadImages(images: HTMLImageElement[]): Promise<HTMLImageElement[]>; }