Skip to main content

ss_player_destroy

Function ss_player_destroy 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn ss_player_destroy(handle: *mut SsPlayer)
Expand description

Remove a player from its scene. Null, or a handle already destroyed, is a safe no-op — the handle itself stays allocated until the scene goes.

§Safety

handle must be null or come from ss_scene_create_player on a scene that is still alive.