Difference between revisions of "TexturePack.loadAsync"

From GiderosMobile
(Created page with "__NOTOC__ '''<translate>Available since</translate>:''' Gideros 2021.9<br/> '''<translate>Class</translate>:''' TexturePack<br/> === Descr...")
(No difference)

Revision as of 17:16, 6 September 2021


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