UNPKG

@tolokoban/tgd

Version:

ToloGameDev library for WebGL2

8 lines 413 B
/** * Try to load an image and return `null` in case of failure. * @param url URL of the image to load. */ export declare function tgdLoadImage(url: string): Promise<HTMLImageElement | null>; export declare function tgdLoadImages(urls: string[]): Promise<Array<HTMLImageElement | null>>; export declare function tgdLoadCanvas(url: string): Promise<HTMLCanvasElement | null>; //# sourceMappingURL=image.d.ts.map