Closed asdf8dfafjk closed 3 years ago
fn main() { unsafe{ let (width, height): (u32, u32) = (1280, 768);
let config = ul_sys::ulCreateConfig(); let settings = ul_sys::ulCreateSettings(); let app = ul_sys::ulCreateApp( settings, config); let monitor = ul_sys::ulAppGetMainMonitor(app); let window = ul_sys::ulCreateWindow(monitor, width, height, false, 0); ul_sys::ulAppSetWindow(app, window); let renderer = ul_sys::ulAppGetRenderer(app); let session = ul_sys::ulCreateSession( renderer, false, ul_sys::ulCreateString( ul_sys::ulVersionString(), ), ); let view = ul_sys::ulCreateView( renderer, width, height, false, session, false ); let overlay = ul_sys::ulCreateOverlay( window, width as u32, height as u32, 0, 0 ); ul_sys::ulViewLoadURL( view, ul_sys::ulCreateString( ul_sys::ulVersionString(), ) ); ul_sys::ulAppRun(app); }
}
fn main() { unsafe{ let (width, height): (u32, u32) = (1280, 768);
}