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

Function bloom_gen_mesh_heightmap

native/linux/src/lib.rs:1174–1184  ·  view source on GitHub ↗
(image_handle: f64, size_x: f64, size_y: f64, size_z: f64)

Source from the content-addressed store, hash-verified

1172
1173#[no_mangle]
1174pub extern "C" fn bloom_gen_mesh_heightmap(image_handle: f64, size_x: f64, size_y: f64, size_z: f64) -> f64 {
1175 let eng = engine();
1176 if let Some(img) = eng.textures.images.get(image_handle) {
1177 let data = img.data.clone();
1178 let w = img.width;
1179 let h = img.height;
1180 eng.models.gen_mesh_heightmap(&data, w, h, size_x as f32, size_y as f32, size_z as f32)
1181 } else {
1182 0.0
1183 }
1184}
1185
1186#[no_mangle]
1187pub extern "C" fn bloom_load_shader(source_ptr: *const u8) -> f64 {

Callers

nothing calls this directly

Calls 4

cloneMethod · 0.80
gen_mesh_heightmapMethod · 0.80
engineFunction · 0.70
getMethod · 0.45

Tested by

no test coverage detected