4 ms·
The graphics code would have to be ported to WebGL, and then there might be an extra hurdle getting WASM to talk to WebGL directly. But it's doable, yes.
by brundolf 6y ago
The graphics code would have to be ported to WebGL, and then there might be an extra hurdle getting WASM to talk to WebGL directly. But it's doable, yes.
- pjmlp 6y agoReferences are almost in, by next year you can probably already talk directly to WebGL.
- steveklabnik 6y agohttps://rustwasm.github.io/wasm-bindgen/examples/webgl.html https://rustwasm.github.io/wasm-bindgen/examples/webgl.html
- kettlecorn 6y agoRust with WebGL is pretty seamless today. I wrote a game for a gamejam using Rust, Wasm, and WebGL without any engine: https://kettlecorn.itch.io/wonder https://kettlecorn.itch.io/wonder It makes use of ‘glow’, a Rust library that lets you write regular OpenGL code that runs across desktop, mobile, and web: https://github.com/grovesNL/glow https://github.com/grovesNL/glow
- deleted 6y ago[deleted]