Esempio n. 1
0
        public static GlbHeader Read(BinaryReader binaryReader)
        {
            var glbHeader = new GlbHeader
            {
                FormatID  = Encoding.UTF8.GetString(binaryReader.ReadBytes(8)),
                FileCount = binaryReader.ReadInt32()
            };

            return(glbHeader);
        }
Esempio n. 2
0
        private void Parse(string fileName)
        {
            FileStream   = new FileStream(fileName, FileMode.Open);
            BinaryReader = new BinaryReader(FileStream);

            Header = GlbHeader.Read(BinaryReader);
            for (var i = 0; i < Header.FileCount; i++)
            {
                FileTable.Add(ArchFile.Read(BinaryReader));
            }
        }