TexturePack.new: Difference between revisions

From GiderosMobile
No edit summary
No edit summary
Line 1: Line 1:
__NOTOC__
__NOTOC__
'''<translate>Available since</translate>:''' Gideros 2011.6<br/>
'''<translate>Available since</translate>:''' Gideros 2011.6<br/>
'''<translate>Class</translate>:''' [[Special:MyLanguage/TexturePack|TexturePack]]<br/>
=== <translate>Description</translate> ===
=== <translate>Description</translate> ===
<translate><br />
<translate><br />
Creates a new [[Special:MyLanguage/TexturePack|TexturePack]] object. This function creates the texture pack at runtime.<br />
Creates a new `TexturePack` object. This function creates the texture pack at runtime.<br />
<br /></translate>
<br /></translate>
<source lang="lua">
<source lang="lua">
Line 15: Line 16:
__NOTOC__
__NOTOC__
'''<translate>Available since</translate>:''' Gideros 2011.6<br/>
'''<translate>Available since</translate>:''' Gideros 2011.6<br/>
'''<translate>Class</translate>:''' [[Special:MyLanguage/TexturePack|TexturePack]]<br/>
=== <translate>Description</translate> ===
=== <translate>Description</translate> ===
<translate><br />
<translate><br />
Creates a new [[Special:MyLanguage/TexturePack|TexturePack]] object. This function loads the pre-packed texture atlas created by &quot;Gideros Texture Packer&quot; tool.<br />
Creates a new `TexturePack` object. This function loads the pre-packed texture atlas created by &quot;Gideros Texture Packer&quot; tool.<br />
<br /></translate>
<br /></translate>
<source lang="lua">
<source lang="lua">

Revision as of 08:27, 24 August 2018

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&quot 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.