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

Method get

native/shared/src/textures.rs:86–88  ·  view source on GitHub ↗
(&self, handle: f64)

Source from the content-addressed store, hash-verified

84 }
85
86 pub fn get(&self, handle: f64) -> Option<&TextureData> {
87 self.textures.get(handle)
88 }
89
90 pub fn load_image(&mut self, file_data: &[u8]) -> f64 {
91 let img = match image::load_from_memory(file_data) {

Callers 2

Calls

no outgoing calls

Tested by

no test coverage detected