Available since version: Gideros 2011.6
Creates a new TexturePack
object. This function creates the texture pack at runtime.
TexturePack.new(textures, padding, filtering, options)
- 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.