Function mold2d::event_loop::create_event_loop
[−]
[src]
pub fn create_event_loop<F>(window: Window, init_view: F) -> SdlResult<()> where F: Fn(&mut Context) -> Box<View>
Initializes SDL and creates the window and event loop