Piece tiles
Cut one image into small cells and stamp them over and over.
For the full list see "UI development". Each call below comes with a one-line usage note and an example; signatures come from
Lib/c/vml_ui.h(the authoritative source).
ui_piece_get_cell(int pid, int rot, int which)
Gets one cell of a piece: pid is the piece number, rot the rotation and which the cell index.
ui_piece_get_cell(0, 0, 3); /* piece 0, no rotation, cell 3 */
ui_piece_init(void)
Initializes the piece tile table (the no-argument version; see Lib/shared/src/vmlui.c for the exact shape).
ui_piece_init();