pub unsafe extern "C" fn b3RecPlayer_SetDebugShapeCallbacks(
player: *mut b3RecPlayer,
createDebugShape: b3CreateDebugShapeCallback,
destroyDebugShape: b3DestroyDebugShapeCallback,
context: *mut c_void,
)Expand description
Wire host debug-shape callbacks into the player’s replay world so a renderer can build per-shape draw resources (the 3D sample needs this or the replay world draws nothing). Rebuilds the current world under the new callbacks and rewinds to frame 0, so call it once right after b3RecPlayer_Create and re-read the world id afterward. The callbacks persist across Restart and backward seeks, which recreate the world internally. @param player the player to configure @param createDebugShape called when a replayed shape is added; returns a user draw handle @param destroyDebugShape called when a replayed shape is removed; may be NULL @param context user context passed to both callbacks