brendanzab / gl-rs

An OpenGL function pointer loader for Rust
Apache License 2.0
678 stars 117 forks source link

wasm-bindgen & web-sys stack WebGL bindings #506

Open notdanilo opened 4 years ago

notdanilo commented 4 years ago

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.

brendanzab commented 4 years ago

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 commented 4 years ago

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!

Lokathor commented 4 years ago

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