export default TextureCache; /** * a basic texture cache object * @ignore */ declare class TextureCache { /** * @ignore */ constructor(renderer: any, max_size?: number); renderer: any; cache: ArrayMultimap; tinted: Map; units: Map; usedUnits: Set; max_size: number; /** * @ignore */ clear(): void; /** * @ignore */ allocateTextureUnit(): number; /** * Reset all texture unit assignments without clearing the texture cache. * Used by multi-texture batching when the shader's sampler range is exceeded. * @ignore */ resetUnitAssignments(): void; /** * @ignore */ freeTextureUnit(texture: any): void; /** * @ignore */ getUnit(texture: any): any; /** * @ignore * return the texture unit for the given texture, or -1 if not allocated */ peekUnit(texture: any): any; /** * @ignore * cache the textureAltas for the given image */ set(image: any, textureAtlas: any): void; /** * @ignore */ has(image: any): boolean; /** * @ignore * return the textureAltas for the given image */ get(image: any, atlas: any): any; /** * @ignore */ delete(image: any): void; /** * @ignore */ tint(src: any, color: any): any; } import { ArrayMultimap } from "../../utils/array-multimap.js"; //# sourceMappingURL=cache.d.ts.map