Skip to main content

ss_runtime_get_nines_vertices

Function ss_runtime_get_nines_vertices 

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

Nine-Slice per-vertex positions for the current frame, interleaved [x, y, ...] and concatenated across all parts, written by ss_runtime_get_frame_data. Slice per part with ss_runtime_get_nines_vertex_offsets; parts drawn by another DrawBatchKind occupy an empty range.

Coordinates are part-local with pivot, image flip and the coordinate_system (Y-Up/Y-Down) flip already applied — exactly like ss_runtime_get_local_vertices — so a Player just multiplies them by the part’s world matrix. The grid is a 4x4 sheet for nines_fill_mode == 0 (stretch) and independent quads per repeat for == 1 (tile).