| 263 | } |
| 264 | |
| 265 | Scene* LoadFromBuffer(Options* options, const char* suffix, void* data, uint32_t file_size) |
| 266 | { |
| 267 | if (suffix == 0) |
| 268 | { |
| 269 | printf("ModelImporter: No suffix specified!\n"); |
| 270 | return 0; |
| 271 | } |
| 272 | |
| 273 | if (dmStrCaseCmp(suffix, "gltf") == 0 || dmStrCaseCmp(suffix, "glb") == 0) |
| 274 | return LoadGltfFromBuffer(options, data, file_size); |
| 275 | |
| 276 | printf("ModelImporter: File type not supported: %s\n", suffix); |
| 277 | return 0; |
| 278 | } |
| 279 | |
| 280 | static void* BufferResolveUri(const char* dirname, const char* uri, uint32_t* file_size) |
| 281 | { |