Skip to content

Low Level Bindings to Ultralight Framework (Ultralight, AppCore)

Notifications You must be signed in to change notification settings

AlphaModder/rust-ul-sys

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ul-sys

Low level bindings to Ultralight SDK. Ultralight is a light and fast option to integrate GPU-accelerated HTML UI in your app.

let (width, height): (u32, u32) = (1280, 768);

let config = ul::ulCreateConfig();

let app = ul::ulCreateApp(config);
let monitor = ul::ulAppGetMainMonitor(app);
let window = ul::ulCreateWindow(monitor, width, height, false, 0);

ul::ulAppSetWindow(app, window);

let renderer = ul::ulAppGetRenderer(app);
let view = ul::ulCreateView(renderer, width, height, false);
let overlay = ul::ulCreateOverlay(window, width as i32, height as i32, 0, 0);
let view = ul::ulOverlayGetView(overlay);

ul::ulViewLoadURL(view, ulstr("https://apple.com"));

ul::ulAppRun(app);

About

Low Level Bindings to Ultralight Framework (Ultralight, AppCore)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 65.5%
  • Objective-C 21.7%
  • C++ 11.8%
  • Rust 1.0%