use std::error::Error; use engine::object::Object; use engine::{Engine, WindowSize}; const WINDOW_SIZE: WindowSize = WindowSize { width: 500, height: 600, }; fn main() -> Result<(), Box> { let engine = Engine::new(&WINDOW_SIZE, "Yaaay lmao")?; let triangle = Object::new(&[-0.5, -0.5, 0.0, 0.5, -0.5, 0.0, 0.0, 0.5, 0.0])?; engine.start(&[triangle], || {})?; Ok(()) }