static Extract() { _texReader = TexReader.Default; _texJsonInfoGenerator = new TexJsonInfoGenerator(); _texToImageConverter = new TexToImageConverter(); _packageReader = new PackageReader(); }
static Extract() { var texHeaderReader = new TexHeaderReader(); var texMipmapDecompressor = new TexMipmapDecompressor(); var texMipmapReader = new TexMipmapReader(texMipmapDecompressor); var texMipmapContainerReader = new TexMipmapContainerReader(texMipmapReader); _texReader = new TexReader(texHeaderReader, texMipmapContainerReader); _texJsonInfoGenerator = new TexJsonInfoGenerator(); _packageReader = new PackageReader(); }
public void Setup() { // Reader var headerReader = new TexHeaderReader(); var mipmapDecompressor = new TexMipmapDecompressor(); var mipmapReader = new TexImageReader(mipmapDecompressor); var containerReader = new TexImageContainerReader(mipmapReader); var frameInfoReader = new TexFrameInfoContainerReader(); mipmapReader.DecompressMipmapBytes = false; mipmapReader.ReadMipmapBytes = true; _reader = new TexReader(headerReader, containerReader, frameInfoReader); // Writer _writer = TexWriter.Default; }
//private static readonly ITexJsonInfoGenerator _jsonInfoGenerator = new TexJsonInfoGenerator(); public static void SetTexReader(ITexReader reader) => _texReader = reader;