mirror of
https://github.com/Heretek-AI/GDevelop.git
synced 2026-07-22 18:15:27 -04:00
73642092bb
* This opens the path to multiple performance improvements (faster WebGL rendering, and then WebGPU rendering) as well as optimised resources loading in the future.
24 lines
832 B
TypeScript
24 lines
832 B
TypeScript
import { integer } from '../model/CommonTypes';
|
|
/**
|
|
* A cache to access the tile images.
|
|
*
|
|
* It's created by {@link PixiTileMapHelper.parseAtlas}
|
|
* and used by {@link PixiTileMapHelper.updatePixiTileMap}.
|
|
*/
|
|
export declare class TileTextureCache {
|
|
private readonly _levelBackgroundTextures;
|
|
private readonly _textures;
|
|
constructor();
|
|
setTexture(tileId: integer, texture: PIXI.Texture): void;
|
|
/**
|
|
* Return the texture to use for the tile with the specified id.
|
|
*
|
|
* @param tileId The tile identifier
|
|
* @returns The texture for the given tile identifier.
|
|
*/
|
|
getTexture(tileId: integer): PIXI.Texture | undefined;
|
|
getLevelBackgroundTexture(name: string): PIXI.Texture | undefined;
|
|
setLevelBackgroundTexture(name: string, texture: PIXI.Texture): void;
|
|
}
|
|
//# sourceMappingURL=TileTextureCache.d.ts.map
|