Handle external buffers and images in cgltf
masterBy default, cgltf does not load the contents of external files like buffers or images into memory. You have two options:
- Manual Loading: Iterate through
data.buffers[]ordata.images[]and use the provided URIs to load the data yourself. - Automatic Loading:
- Use
cgltf_load_buffersto automatically open and read buffer files usingFILE*APIs. This also handles base64 decoding in buffers. - Use
cgltf_load_buffer_base64for base64 encoded data URIs in images.
- Use