Skip to main content

Module framedata

Module framedata 

Source

Structs§

CachedPartData
MeshBindingCache
Pre-decoded skinned mesh bind-pose data for a single part.
MeshCellData
Per-part static mesh geometry resolved from the part’s Cell.
NinesBuffers
Per-part Nine-Slice geometry for the current frame, concatenated across parts in CSR layout. Non-nines parts occupy an empty range.
NinesPartData
Per-part static Nine-Slice authoring, read once from PartTypeNines. Margins are (left, top, right, bottom) in source-cell pixels.
PartBaseRef
One part’s base, as PartBases::get hands it to evaluate_part.
PartBases
Every part’s base for an animation under one coordinate setup: its state with the attributes that never change during the animation (CachedPartData::constant_mask) already applied. extract_pose starts each part from its base and evaluates only the rest.
PartDeformFrame
Per-frame mesh deform for one part, retained from Phase 1’s evaluate_deform so the Phase 2 mesh-vertex pass can consume it. indices selects which mesh vertices are deformed; dx/dy are the matching SoA deltas in part-local space (Y-down flip already applied). All three empty when the part has no deform this frame.
PartEvaluationResult
RawVertexDeform
ResolvedCellMeta

Constants§

IDX_ATTRIBUTECELL
IDX_ATTRIBUTEDEFORM
IDX_ATTRIBUTETEXTURE
LOCAL_VERTICES_STRIDE
Stride (number of f32s) per part in the local_vertices SoA buffer. Layout: [lt.x, lt.y, rt.x, rt.y, lb.x, lb.y, rb.x, rb.y, center.x, center.y] in part-local space, with coordinate_system (Y-Up/Y-Down) flip already applied.
NUM_PART_ATTRIBUTES
SHAPE_VERTICES_STRIDE
Stride (number of f32s) per part in the shape_vertices and shape_vertex_box_coords buffers (ss_runtime_get_shape_vertices and ss_runtime_get_shape_vertex_box_coords in the C-API): 12 vertices of two floats each, the most a shape part has (a star).

Functions§

build_mesh_binding_cache
Builds a MeshBindingCache from the SSAB-side PartMeshBinding table. Returns None when the part has no mesh binding or the offset vector is empty.
build_mesh_cell_data
Extracts a mesh cell’s triangulated geometry. Returns None when the cell cannot be resolved or carries no mesh tables (i.e. it is not a mesh cell).
build_nines_part_data
Builds a NinesPartData from the SSAB-side PartTypeNines table. Returns None for every other part type.
compose_frame_data
compute_local_vertices_for_parts
compute_nines_geometry_for_parts
Builds this frame’s Nine-Slice geometry for every nines part — the runtime side of SsNines, driven by the part’s authored margins / fill mode and the pose’s size and Cell.
cursor_count
How many key cursors an instance needs to play an animation with cached_parts, whose cursor_bases run up to it.
cursor_slot
Where attribute idx’s cursor sits among a part’s cursors: the part keeps one for each attribute in its key_mask, in bit order.
extract_pose
mesh_part_cell
A mesh part’s Cell, as an index for KeyColumns::cell — fixed at frame 0 per the SS mesh spec, so the first cell keyframe is authoritative. None when the part has no cell keys.
vertex_deform_at
Part i’s vertex deform this frame, if it has one.

Type Aliases§

DeformSlot
One part’s entry in a per-part deform work area (RawVertexDeform, PartDeformFrame): nothing until the part first carries a deform, then a box that stays allocated and is cleared every frame. Most parts never deform, so they cost a pointer rather than the whole entry.