Table of Contents

TexturePack.new

Available since version: Gideros 2011.6

Description:

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

Syntax:

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" fields are supported.