Ejemplo n.º 1
0
        private void ExportKTX(Stream writer, Stream reader, long length)
        {
            KTXConvertParameters @params = new KTXConvertParameters()
            {
                DataLength         = length,
                InternalFormat     = KTXInternalFormat,
                BaseInternalFormat = KTXBaseInternalFormat,
                Width  = Width,
                Height = Height,
            };

            KTXConverter.ExportKXT(writer, reader, @params);
        }
Ejemplo n.º 2
0
        private void ExportKTX(Stream writer, Stream reader, long length)
        {
            KTXConvertParameters @params = new KTXConvertParameters()
            {
                DataLength         = length,
                InternalFormat     = KTXInternalFormat,
                BaseInternalFormat = KTXBaseInternalFormat,
                Width  = Width,
                Height = Height,
            };

            if (Config.IsConvertTexturesToPNG)
            {
                throw new NotImplementedException();
            }
            else
            {
                KTXConverter.ExportKXT(writer, reader, @params);
            }
        }