예제 #1
0
 public IBufferReader Load(string uri) {
   Stream stream;
   if (uri == null) {
     var range = GlbParser.GetBinChunk(glbPath);
     stream = new SubStream(File.OpenRead(glbPath), range.start, range.length);
   } else {
     stream = File.OpenRead(Path.Combine(uriBase, uri));
   }
   return new BufferedStreamReader(stream, bufferSize, stream.Length);
 }
예제 #2
0
        public void TestV2Bin()
        {
            var file = GetGlb2File();

            GlbParser.GetBinChunk(file);
        }