Skip to main content

ss_runtime_get_local_vertices

Function ss_runtime_get_local_vertices 

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

Per-part local-space vertex positions for the current frame, written by ss_runtime_get_frame_data. Layout per part: [lt.x, lt.y, rt.x, rt.y, lb.x, lb.y, rb.x, rb.y, center.x, center.y] = 10 floats, indexed by part_index * 10. Coordinates are in part-local space with coordinate_system (Y-Up/Y-Down) flip already applied, so a Player just multiplies them by the world matrix. Includes pivot, image flip, and per-frame vertex deformation. Parts without a current cell carry zeros. Replaces FrameData::vertices for renderers that consume pre-resolved SoA buffers.