Skip to main content

set_target

Function set_target 

Source
pub fn set_target(ctx: &Context, viewport: ViewportId, target: DisplayTarget)
Expand description

Sets what a window’s surface expects (for example when its surface or monitor changes, or when the application configured the surface itself). Viewports in that window follow on the next frame and signal it.