[][src]Function cpurender::open_window

pub fn open_window(
    x_size: usize,
    y_size: usize,
    draw_thread: impl FnOnce(Arc<SegQueue<Paint>>) + Send + 'static
)

Open a software rendering window.

This will take over the current thread (which should be the main thread) until the window closes, because some platforms require the window to be created in the main thread. It will call the provided closure in its own thread, with a queue that can be sent draw instructions.