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

Method get_render_texture_texture

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

Source from the content-addressed store, hash-verified

58 }
59
60 pub fn get_render_texture_texture(&self, handle: f64) -> f64 {
61 match self.render_textures.get(handle) {
62 Some(rt) => rt.texture_handle,
63 None => 0.0,
64 }
65 }
66
67 pub fn load_texture(&mut self, renderer: &mut Renderer, file_data: &[u8]) -> f64 {
68 let img = match image::load_from_memory(file_data) {

Calls 1

getMethod · 0.45

Tested by

no test coverage detected