Skip to main content

install

Function install 

Source
pub fn install(
    ctx: &Context,
    rs: &RenderState,
    window: &(impl HasWindowHandle + HasDisplayHandle),
    options: Options,
) -> Offer
Expand description

Sets up image surfaces for the main window: rs is the render state the GPU path was installed on (crate::gpu::install), window the main window’s handles (eframe’s creation context). Returns what the platform offers; viewports in the main window use it from the next frame. Other windows get theirs with install_window, or as they draw the image once set_window_source says where their handles are.