use lexsdl::*; use std::ffi::*; fn main() {unsafe{ if LEXSDL_Init(0) != 0 { panic!("init failed"); } LEXSDL_CreateWindow(CString::new("Title").unwrap().as_ptr(), 0); LEXSDL_CreateRenderer(0); LEXSDL_NewFrame(); LEXSDL_ShowFrame(); std::thread::sleep(std::time::Duration::from_secs(2)); }}