import { Rectangle } from '../../geom/rectangle.js'; import type { BaseTexture } from './base_texture.js'; /** The four corners of a texture frame in normalised texture space. */ export declare class TextureUvs { x0: number; y0: number; x1: number; y1: number; x2: number; y2: number; x3: number; y3: number; } export declare class Texture { noFrame: boolean; baseTexture: BaseTexture; frame: Rectangle; trim: Rectangle | null; valid: boolean; isTiling: boolean; requiresUpdate: boolean; requiresReTint: boolean; _uvs: TextureUvs | null; width: number; height: number; crop: Rectangle; /** * Creates a new Texture instance. * @param {BaseTexture} baseTexture - The base texture to use. * @param {Rectangle | null | undefined} frame - The frame rectangle. * @param {Rectangle | null | undefined} crop - The crop rectangle. * @param {Rectangle | null | undefined} trim - The trim rectangle. */ constructor(baseTexture: BaseTexture, frame?: Rectangle | null | undefined, crop?: Rectangle | null | undefined, trim?: Rectangle | null | undefined); /** * Destroys this texture and cleans up resources. */ onBaseTextureLoaded(): void; /** * Destroys this texture and cleans up resources. * @param {boolean} destroyBase - Whether to destroy the base texture as well. */ destroy(destroyBase?: boolean): void; /** * Sets the frame of this texture. * @param {Rectangle} frame - The new frame rectangle. * @throws {Error} If the operation fails. */ setFrame(frame: Rectangle): void; /** * Updates the texture UVs based on the crop frame. */ _updateUvs(): void; } //# sourceMappingURL=texture.d.ts.map