Difference between revisions of "TexturePack.new"

From GiderosMobile
m (→‎Parameters: fixed &quot to ")
Line 32: Line 32:
 
'''filtering''': (boolean, default = false) <translate>Whether or not the texture is filtered.</translate> <br/>
 
'''filtering''': (boolean, default = false) <translate>Whether or not the texture is filtered.</translate> <br/>
 
'''options''': (table, optional) <translate>A table that specifies optional paramaters. Currently, &quot;transparentColor&quot; and &quot;format&quot fields are supported.</translate> <br/>
 
'''options''': (table, optional) <translate>A table that specifies optional paramaters. Currently, &quot;transparentColor&quot; and &quot;format&quot fields are supported.</translate> <br/>
 +
 +
{{TexturePack}}

Revision as of 03:16, 4 December 2019


Available since: Gideros 2011.6
Class: TexturePack

Description


Creates a new TexturePack object. This function creates the texture pack at runtime.

 TexturePack.new(textures,padding,filtering,options)

Parameters

textures: (table) file names of textures.
padding: (number) the spacing between textures in pixels
filtering: (boolean, default = false) Whether or not the texture is filtered.
options: (table, optional) A table that specifies optional paramaters. Currently, "transparentColor" and "format" fields are supported.


Available since: Gideros 2011.6
Class: TexturePack

Description


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

 TexturePack.new(txtfile,imagefile,filtering,options)

Parameters

txtfile: (string)
imagefile: (string)
filtering: (boolean, default = false) Whether or not the texture is filtered.
options: (table, optional) A table that specifies optional paramaters. Currently, "transparentColor" and "format&quot fields are supported.