zray 0.0.0

A modular GPU renderer supporting voxel and rasterization pipelines
Documentation
use winit::event_loop::{ControlFlow, EventLoop};

use crate::display::Window;

pub struct Engine {
    window: Window,
}
impl Engine {
    pub fn new() -> Self {
        let window = Window::default();
        Self { window }
    }
    pub fn run(&mut self) {
        let event_loop = EventLoop::new().expect("Could not create event loop.");
        event_loop.set_control_flow(ControlFlow::Poll);
        event_loop
            .run_app(&mut self.window)
            .expect("Could not run app.");
    }
}