跳转到内容

TextureAtlas

此内容尚不支持你的语言。

const TextureAtlas: object

Defined in: sdk/src/render/textureAtlas.ts:122

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.

readonly number[]

TextureAtlasOptions = {}

TextureAtlasHandle | null