Example #1
0
        static Extract()
        {
            _texReader            = TexReader.Default;
            _texJsonInfoGenerator = new TexJsonInfoGenerator();
            _texToImageConverter  = new TexToImageConverter();

            _packageReader = new PackageReader();
        }
Example #2
0
        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();
        }
Example #3
0
        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;
        }
Example #4
0
        //private static readonly ITexJsonInfoGenerator _jsonInfoGenerator = new TexJsonInfoGenerator();

        public static void SetTexReader(ITexReader reader) => _texReader = reader;