TextureAtlas
constTextureAtlas:object
Defined in: sdk/src/render/textureAtlas.ts:122
Type Declaration
Section titled “Type Declaration”pack()
Section titled “pack()”pack(
sources,options?):TextureAtlasHandle|null
Draws sources (texture handles) onto one new canvas and returns where each landed. Call it
from a Schedule.Update system, not a draw callback. Null while the renderer is not up yet;
throws when a handle has no size or the textures do not fit. Keep the sources alive: a device
loss draws the canvas again from them.
Parameters
Section titled “Parameters”sources
Section titled “sources”readonly number[]
options?
Section titled “options?”TextureAtlasOptions = {}
Returns
Section titled “Returns”TextureAtlasHandle | null