MCPcopy Create free account
hub / github.com/Bloom-Engine/engine / load_model_with_textures

Method load_model_with_textures

native/shared/src/models.rs:88–93  ·  view source on GitHub ↗
(&mut self, file_data: &[u8], renderer: &mut crate::renderer::Renderer)

Source from the content-addressed store, hash-verified

86 }
87
88 pub fn load_model_with_textures(&mut self, file_data: &[u8], renderer: &mut crate::renderer::Renderer) -> f64 {
89 match load_gltf_with_textures(file_data, renderer, None) {
90 Some(model) => self.models.alloc(model),
91 None => 0.0,
92 }
93 }
94
95 /// Like `load_model_with_textures` but also resolves external `.bin`
96 /// and image URIs relative to `base_dir` — required for loose glTF

Callers 6

bloom_load_modelFunction · 0.80
bloom_load_modelFunction · 0.80
bloom_load_modelFunction · 0.80
bloom_load_modelFunction · 0.80
bloom_load_model_bytesFunction · 0.80
bloom_load_modelFunction · 0.80

Calls 2

load_gltf_with_texturesFunction · 0.85
allocMethod · 0.80

Tested by

no test coverage detected