gl-rs icon indicating copy to clipboard operation
gl-rs copied to clipboard

wasm-bindgen & web-sys stack WebGL bindings

Open notdanilo opened this issue 5 years ago • 3 comments

First of all, thanks for the effort to maintain gl-rs!

I've already used gl-rs with stdweb and it works great. But now I am developing a project using wasm-bindgen and web-sys. I can directly access WebGL bindings through web-sys, but I want to use an OpenGL abstraction make the project portable to other platforms.

With that said, I would like to know: What is the state of gl-rs with wasm-bindgen + web-sys? I couldn't find any resource on it.

notdanilo avatar Nov 13 '19 01:11 notdanilo

Ahh that would be handy! I hear that the ecosystem is moving to wasm-bindgen and web-sys now? I might need some help if somebody was going to support this. Possibly we'd need a new binding generator 🤔.

brendanzab avatar Nov 18 '19 00:11 brendanzab

There already might be another crate out there for webgl on wasm-bindgen, and if that's the case then maybe we should be directing people to that. Not sure though!

brendanzab avatar Nov 18 '19 00:11 brendanzab

for making a cross-gl program, your best bet is glow

Lokathor avatar Nov 18 '19 01:11 Lokathor