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

Function bloom_draw_text_ex

native/tvos/src/lib.rs:1796–1802  ·  view source on GitHub ↗
(font_handle: f64, text_ptr: *const u8, x: f64, y: f64, size: f64, spacing: f64, r: f64, g: f64, b: f64, a: f64)

Source from the content-addressed store, hash-verified

1794
1795#[no_mangle]
1796pub extern "C" fn bloom_draw_text_ex(font_handle: f64, text_ptr: *const u8, x: f64, y: f64, size: f64, spacing: f64, r: f64, g: f64, b: f64, a: f64) {
1797 let text = str_from_header(text_ptr);
1798 let eng = engine();
1799 let mut text_renderer = std::mem::replace(&mut eng.text, bloom_shared::text_renderer::TextRenderer::empty());
1800 text_renderer.draw_text_ex(&mut eng.renderer, font_handle as usize, text, x, y, size as u32, spacing as f32, r, g, b, a);
1801 eng.text = text_renderer;
1802}
1803
1804#[no_mangle]
1805pub extern "C" fn bloom_measure_text_ex(font_handle: f64, text_ptr: *const u8, size: f64, spacing: f64) -> f64 {

Callers

nothing calls this directly

Calls 3

str_from_headerFunction · 0.85
draw_text_exMethod · 0.80
engineFunction · 0.70

Tested by

no test coverage detected