summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVille Skyttä <ville.skytta@iki.fi>2021-06-28 20:46:50 +0300
committerVille Skyttä <ville.skytta@iki.fi>2021-07-29 22:06:25 +0000
commitafcaa28043205824db93ac86b463bc6366f62979 (patch)
tree6944f60b18e1722f22a16e31d26b33c69a8a4889
parent7d47a7fdd99d96c6e0c16c33e1058e7240e794a1 (diff)
model/gltf-binary: new type
https://www.iana.org/assignments/media-types/model/gltf-binary
-rw-r--r--data/freedesktop.org.xml.in9
-rw-r--r--tests/mime-detection/list2
-rw-r--r--tests/mime-detection/test.glbbin0 -> 1632 bytes
3 files changed, 11 insertions, 0 deletions
diff --git a/data/freedesktop.org.xml.in b/data/freedesktop.org.xml.in
index 3ed0df7..b0b7151 100644
--- a/data/freedesktop.org.xml.in
+++ b/data/freedesktop.org.xml.in
@@ -5705,6 +5705,15 @@ command to generate the output files.
<glob pattern="*.igs"/>
<glob pattern="*.iges"/>
</mime-type>
+ <mime-type type="model/gltf-binary">
+ <comment>glTF model</comment>
+ <acronym>glTF</acronym>
+ <expanded-acronym>GL Transmission Format</expanded-acronym>
+ <magic>
+ <match type="string" value="glTF" offset="0"/>
+ </magic>
+ <glob pattern="*.glb"/>
+ </mime-type>
<mime-type type="model/vrml">
<comment>VRML document</comment>
<acronym>VRML</acronym>
diff --git a/tests/mime-detection/list b/tests/mime-detection/list
index 0237962..1efb647 100644
--- a/tests/mime-detection/list
+++ b/tests/mime-detection/list
@@ -665,6 +665,8 @@ PWAD.WAD application/x-doom-wad
# Models
cube.igs model/iges
cube.wrl model/vrml
+# Copied from https://github.com/KhronosGroup/glTF-Sample-Models/blob/master/2.0/BoxInterleaved/glTF-Binary/BoxInterleaved.glb
+test.glb model/gltf-binary
# other
text.pdf application/pdf
diff --git a/tests/mime-detection/test.glb b/tests/mime-detection/test.glb
new file mode 100644
index 0000000..25cb404
--- /dev/null
+++ b/tests/mime-detection/test.glb
Binary files differ