summaryrefslogtreecommitdiffhomepage
path: root/examples/models/models_loading.c
diff options
context:
space:
mode:
authorRay <[email protected]>2022-08-26 10:04:38 +0200
committerRay <[email protected]>2022-08-26 10:04:38 +0200
commitf66b1a313650051cfaa9c38b1117944630b35d5a (patch)
treeccc9e6e7de5752a69627a5edffa5e1af768063f6 /examples/models/models_loading.c
parentae745e4fa8f25e16a2e6964b417454e8a35a61b7 (diff)
downloadraylib-f66b1a313650051cfaa9c38b1117944630b35d5a.tar.gz
raylib-f66b1a313650051cfaa9c38b1117944630b35d5a.zip
REVIEWED: Support M3D file loading #2648
Diffstat (limited to 'examples/models/models_loading.c')
-rw-r--r--examples/models/models_loading.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/examples/models/models_loading.c b/examples/models/models_loading.c
index bb3b490f..d4066141 100644
--- a/examples/models/models_loading.c
+++ b/examples/models/models_loading.c
@@ -12,6 +12,8 @@
* raylib can load .iqm animations.
* - VOX > Binary file format. MagikaVoxel mesh format:
* https://github.com/ephtracy/voxel-model/blob/master/MagicaVoxel-file-format-vox.txt
+* - M3D > Binary file format. Model 3D format:
+* https://bztsrc.gitlab.io/model3d
*
* Example originally created with raylib 2.0, last time updated with raylib 4.2
*
@@ -80,7 +82,8 @@ int main(void)
IsFileExtension(droppedFiles.paths[0], ".gltf") ||
IsFileExtension(droppedFiles.paths[0], ".glb") ||
IsFileExtension(droppedFiles.paths[0], ".vox") ||
- IsFileExtension(droppedFiles.paths[0], ".iqm")) // Model file formats supported
+ IsFileExtension(droppedFiles.paths[0], ".iqm") ||
+ IsFileExtension(droppedFiles.paths[0], ".m3d")) // Model file formats supported
{
UnloadModel(model); // Unload previous model
model = LoadModel(droppedFiles.paths[0]); // Load new model