TexturePack.loadAsync

From GiderosMobile
Revision as of 16:16, 6 September 2021 by Hgy29 (talk | contribs) (Created page with "__NOTOC__ '''<translate>Available since</translate>:''' Gideros 2021.9<br/> '''<translate>Class</translate>:''' TexturePack<br/> === Descr...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)


Available since: Gideros 2021.9
Class: TexturePack

Description

Asynchronously loads a TexturePack object. This function loads the pre-packed texture atlas created by "Gideros Texture Packer" tool.

TexturePack.loadAsync(callback,txtfile,imagefile,filtering,options)

Parameters

callback: (function) The function will be called with the Texture object as argument or an error as second argument.
txtfile: (string)
imagefile: (string)
filtering: (boolean, default = false) whether or not the texture is filtered
options: (table, optional) a table that specifies optional parameters. Currently, "transparentColor" and "format" fields are supported