Example #1
0
 private static Byte[] _LoadImageUnchecked(AssetReader externalReferenceSolver, string uri)
 {
     return(uri._TryParseBase64Unchecked(EMBEDDEDGLTFBUFFER)
            ?? uri._TryParseBase64Unchecked(EMBEDDEDOCTETSTREAM)
            ?? uri._TryParseBase64Unchecked(EMBEDDEDJPEGBUFFER)
            ?? uri._TryParseBase64Unchecked(EMBEDDEDPNGBUFFER)
            ?? externalReferenceSolver.Invoke(uri).ToArray());
 }
Example #2
0
 private static Byte[] _LoadBinaryBufferUnchecked(string uri, AssetReader satelliteReferenceSolver)
 {
     return(uri._TryParseBase64Unchecked(EMBEDDEDGLTFBUFFER)
            ?? uri._TryParseBase64Unchecked(EMBEDDEDOCTETSTREAM)
            ?? satelliteReferenceSolver.Invoke(uri).ToArray());
 }
Example #3
0
 private static Byte[] _LoadBinaryBufferUnchecked(string uri, AssetReader externalReferenceSolver)
 {
     return(uri._TryParseBase64Unchecked(EMBEDDEDGLTFBUFFER)
            ?? uri._TryParseBase64Unchecked(EMBEDDEDOCTETSTREAM)
            ?? externalReferenceSolver?.Invoke(uri));
 }