Skip to main content

FOREIGN_RESOURCE

Constant FOREIGN_RESOURCE 

Source
pub const FOREIGN_RESOURCE: &'static str;
Expand description

A FontId / ImageId / SoundId registered in one Session and used through a core of another. Handles are unique to the process, so it cannot resolve to somebody else’s resource; it behaves as a removed handle does (draws nothing, shapes as sans-serif, plays nothing), which from outside looks like the resource never registered. Two Core::new()s are two sessions; windows that share resources are built with Core::new_in against one Session.