Function host_frame

Source
pub fn host_frame<T>(
    dt: f32,
    width: u32,
    height: u32,
    run: impl FnOnce() -> T,
) -> T
Expand description

Drive the shared action journal and optional immediate UI from a custom renderer host. Call once per render frame, outside a start game future. The callback can sample PlayerInput, advance its game, then draw settings. UI vertices remain available through the normal renderer ABI after return.