Function kludgine::app::run

source ·
pub fn run<RenderFn>(render_fn: RenderFn) -> Result<(), EventLoopError>
where RenderFn: for<'render, 'gfx, 'window> FnMut(Renderer<'render, 'gfx>, Window<'window>) -> bool + Send + 'static,
Expand description

Runs a callback as a single window. Continues to run until false is returned.

§Errors

Returns an [EventLoopError] upon the loop exiting due to an error. See EventLoop::run for more information.