TexturePack.new

From GiderosMobile
Revision as of 11:02, 23 August 2018 by Hgy29 (talk | contribs) (Created page with "__NOTOC__ '''Available since:''' Gideros 2011.6<br/> === Description === <br /> Creates a new `TexturePack` object. This function creates the texture pack at runtime.<br /> <b...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Available since: Gideros 2011.6

Description


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

= TexturePack.new(texturespaddingfilteringoptions,)

'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

Description


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

= TexturePack.new(txtfileimagefilefilteringoptions,)

'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. '