예제 #1
0
 public static GltfData CreateFromGltfDataForTest(glTF gltf, ArraySegment <byte> bytes)
 {
     return(new GltfData(
                string.Empty,
                string.Empty,
                gltf,
                new List <GlbChunk>
     {
         new GlbChunk(),     // json
         GlbChunk.CreateBin(bytes),
     },
예제 #2
0
 public static Glb Create(string json, ArraySegment <byte> bin)
 {
     return(new Glb(GlbChunk.CreateJson(json), GlbChunk.CreateBin(bin)));
 }