imgui::backend

Trait Backend

source
pub trait Backend {
    // Required methods
    fn init_for_window(&self, window: &mut Window);
    fn new_frame(&self);
    fn render(&self);
    fn shutdown(&self);
}
Expand description

A backend is a platform-specific implementation of the imgui renderer.

Required Methods§

source

fn init_for_window(&self, window: &mut Window)

Initializes the backend.

source

fn new_frame(&self)

Creates a new frame.

source

fn render(&self)

Renders the frame.

source

fn shutdown(&self)

Shuts down the backend.

Implementors§