psychonautwiki / rust-ul-sys

Low Level Bindings to Ultralight Framework (Ultralight, AppCore)
18 stars 10 forks source link

Examples #3

Open RickKock opened 3 years ago

RickKock commented 3 years ago

Hi,

Is it possible to provide some samples of how to use?

I've experienced that the example inside the readme is outdated en some function have changed.

Also I can't figure out how to interact between javascript and rust.

Thanks.

19h commented 3 years ago

Lets continue this conversation in the rust-ul ticket you created.

19h commented 3 years ago

Actually, sorry. I thought you were the same author of this ticket: https://github.com/psychonautwiki/rust-ul/issues/3.

Are you talking about rust-ul-sys or rust-ul?

RickKock commented 3 years ago

I was talking about the rust-ul-sys. Din't look yet to rust-ul because I saw that this package was recently updated en the rust-ul page was last updaten 1 year ago.

19h commented 3 years ago

What issues are you facing?

RickKock commented 3 years ago

I can't figure how I can communicatie beween Javascript and Rust. So my question actually is of you can provide some examples how to do that.

And as a said before, the example in de readme is also not accurate anymore. For example the ulCreateApp function requires an settings object and the ulCreateView required as session object. You may need to update that.

ChristianIvicevic commented 3 years ago

Similarly I'd be curious how these binding can be integrated into a game using winit for windowing and OpenGL as the rendering API. I could not find any resources or examples online in relation to the Rust bindings.