UNPKG

@spearwolf/twopoint5d

Version:

Create 2.5D realtime graphics and pixelart with WebGL and three.js

17 lines 695 B
import { ImageLoader } from 'three/webgpu'; import { TextureCoords } from './TextureCoords.js'; export interface ImageWithTexCoords { imgEl: HTMLImageElement | HTMLCanvasElement; texCoords: TextureCoords; } type OnImageLoadCallback = (image: ImageWithTexCoords) => void; type OnErrorCallback = ((err: unknown) => void) | undefined; export declare class PowerOf2ImageLoader { #private; get imageLoader(): ImageLoader; set imageLoader(loader: ImageLoader); load(url: string, onLoadCallback: OnImageLoadCallback, onErrorCallback?: OnErrorCallback): void; loadAsync(url: string): Promise<ImageWithTexCoords>; } export {}; //# sourceMappingURL=PowerOf2ImageLoader.d.ts.map