[][src]Trait covalent::RenderBackend

pub trait RenderBackend {
    fn create_window(&mut self, dh: &DisplayHints);
fn main_loop(&mut self); }

Covalent supports the use of "render backends", distinct rendering engines for use with covalent. They all support the same rendering API, so similar code can run on multiple platforms with limited, or zero, edits.

Required methods

fn create_window(&mut self, dh: &DisplayHints)

Should create a render context. This function will only be called once.

fn main_loop(&mut self)

Enters a loop that will not be terminated until the application itself quits. Every loop iteration, the following steps must be taken.

  • Render a single frame on the back buffer.
  • Swap the back and front buffers.
Loading content...

Implementors

Loading content...