Options
All
  • Public
  • Public/Protected
  • All
V1.7
  • V1.6
  • V1.7
Menu

Class Descriptor

Describes the pre-generated data used to initialize a TexturePackResource, which includes one or more JSON data files corresponding to packed-texture images, as well as extra parameters and information. Provides the data and facilities required to access sub-textures.

Hierarchy

  • Descriptor

Index

Constructors

constructor

Methods

empty

  • empty(): boolean

getLocation

  • getLocation(): string

getParams

getSheetCount

  • getSheetCount(): number

getSheets

getSubTextureCount

  • getSubTextureCount(): number

getSubTextures

Static Assemble

  • Descriptor factory function that scans the given directory on the local file system (not recursively) for JSON files that correspond to exported, packed-texture images. The multi- pack descriptor used to initialize a TexturePackResource is assembled from this information. Note the lists in the returned object are in alphabetical order.

    Parameters

    • directory: string

      A directory containing packed-texture images.

    • Optional params: Params

      default = Params.DEFAULT
      To control the rendering of the images.

    Returns Descriptor

    The information gathered about the texture multi-pack.

  • Descriptor factory function that opens JSON files that correspond to exported, packed-texture images. The multi- pack descriptor used to initialize a TexturePackResource is assembled from this information. Note the lists in the returned object are in alphabetical order.

    Parameters

    • vMetaDataNames: Array<string>

      A list of texture pack meta data file names.

    • Optional params: Params

      default = Params.DEFAULT
      To control the rendering of the images.

    Returns Descriptor

    The information gathered about the texture multi-pack.

Generated using TypeDoc