1681-engine / index / collectAtlasPages
Function: collectAtlasPages() ​
ts
function collectAtlasPages(
url,
load,
resolve
): Promise<object[]>;Defined in: src/assets/textureAtlas.ts:107
Every page of a multipack atlas, the first first, each JSON fetched once however the pages name each other (TexturePacker lists every other page in each page). load(url) returns a page's parsed JSON; resolve turns a related name into a URL beside the file naming it.
Parameters ​
| Parameter | Type |
|---|---|
url | string |
load | (url) => Promise<PackedAtlasPage> |
resolve | (name, base) => string |
Returns ​
Promise<object[]>