/** What a base texture is uploaded from: a loaded image or a canvas the engine drew into. */ export type TextureSource = HTMLImageElement | HTMLCanvasElement; export declare class BaseTexture { resolution: number; width: number; height: number; scaleMode: number; hasLoaded: boolean; source: TextureSource | null; premultipliedAlpha: boolean; _glTextures: (WebGLTexture | null)[]; mipmap: boolean; skipRender: boolean; _powerOf2: boolean; _dirty: boolean[]; /** * Updates the base texture with a new source. * @param {HTMLCanvasElement} source - The new canvas element to use as the texture source. * @param {number} [scaleMode] - The scale mode to use for the texture. */ constructor(source: TextureSource | null, scaleMode?: number); /** * Updates the base texture with new dimensions. * @param {number} width - The new width of the texture. * @param {number} height - The new height of the texture. */ forceLoaded(width: number, height: number): void; /** * Destroys the texture. */ destroy(): void; /** * Marks the texture as dirty. */ dirty(): void; /** * Unloads the texture from the GPU. */ unloadFromGPU(): void; } //# sourceMappingURL=base_texture.d.ts.map