crunchFromCompact

Parses a crunch file from --compact or --binary output. For old --binary format files no trim and no rotate is assumed.

  1. Crunch crunchFromCompact(const ubyte[] data, bool allowBinary)
    crunchFromCompact
    (
    alias nameDup
    )
    (
    const ubyte[] data
    ,
    )
  2. Crunch crunchFromCompact(ubyte[] data, bool allowBinary)

Parameters

data
Type: ubyte[]

binary data to parse

allowBinary
Type: bool

true to make a failed magicnumber check interpret the file as --binary output (no metadata)

nameDup

method to duplicate names of textures and images. Must be the input name because it is sorted.

Meta