16 lines
No EOL
367 B
Rust
16 lines
No EOL
367 B
Rust
pub mod commands;
|
|
pub mod repl;
|
|
pub mod splash;
|
|
pub mod renderer;
|
|
use anyhow::Result;
|
|
use renderer::App;
|
|
use winit::event_loop::{ControlFlow, EventLoop};
|
|
|
|
|
|
|
|
pub fn init_render() -> Result<()> {
|
|
let event_loop = EventLoop::new().unwrap();
|
|
event_loop.set_control_flow(ControlFlow::Poll);
|
|
let mut app = App::default();
|
|
Ok(event_loop.run_app(&mut app)?)
|
|
} |