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

Function bloom_gen_mesh_heightmap

native/windows/src/lib.rs:1034–1044  ·  view source on GitHub ↗
(image_handle: f64, size_x: f64, size_y: f64, size_z: f64)

Source from the content-addressed store, hash-verified

1032
1033#[no_mangle]
1034pub extern "C" fn bloom_gen_mesh_heightmap(image_handle: f64, size_x: f64, size_y: f64, size_z: f64) -> f64 {
1035 let eng = engine();
1036 if let Some(img) = eng.textures.images.get(image_handle) {
1037 let data = img.data.clone();
1038 let w = img.width;
1039 let h = img.height;
1040 eng.models.gen_mesh_heightmap(&data, w, h, size_x as f32, size_y as f32, size_z as f32)
1041 } else {
1042 0.0
1043 }
1044}
1045
1046#[no_mangle]
1047pub 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