Skip to main content

ss_scene_destroy

Function ss_scene_destroy 

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

Destroy a scene, its players and its wgpu resources. Null is a no-op.

Every ss_player_t this scene issued becomes invalid, including handles the caller still holds — using one afterwards reads freed memory. Drop them with the scene.

§Safety

handle must come from ss_scene_create and must not be used afterwards, nor must any player handle it created.