Skip to main content

ss_runtime_get_nines_box_coords

Function ss_runtime_get_nines_box_coords 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn ss_runtime_get_nines_box_coords( context: *mut c_void, out_data: *mut *const c_float, out_len: *mut usize, )
Expand description

Nine-Slice per-vertex box coordinates, interleaved [fx, fy, ...] with 0 at the part’s left / top edge and 1 at its right / bottom edge. Shares the vertex CSR of ss_runtime_get_nines_vertex_offsets.

Use them to bilinearly interpolate the four part_color corners across the grid — the same weighting ss_runtime_get_shape_vertex_box_coords provides for Shape parts. A part flip is already folded in, so fx / fy always describe the drawn box.