Skip to main content

ss_scene_render

Function ss_scene_render 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn ss_scene_render(scene: *mut SsScene) -> i32
Expand description

Acquire the swapchain image, draw the prepared frame into it, and present.

One pass covers every player, in ascending ss_player_set_order.

A lost/outdated surface is absorbed by reconfiguring: the call returns SS_OK having skipped one frame.

ยงSafety

scene must be a live handle or null.