3 ms·
That's neat, and I agree there's a lot of potential to learn and experiment with that approach. I've done something similar with Go, it was a library [0] that
by shurcooL 10y ago
That's neat, and I agree there's a lot of potential to learn and experiment with that approach.
I've done something similar with Go, it was a library [0] that exposed identical API in 3 situations: desktops, mobile, and browsers. It uses OpenGL 2.1 backend on desktop, OpenGL ES 2.0 on mobile, and WebGL 1.0 in browsers.
It worked really well and results in an extremely cross-platform graphics library. It was also a great way to learn about the few subtle differences between OpenGL ES and WebGL, and understand the kind of challenges they faced when designing the WebGL API.
[0] https://github.com/goxjs/gl https://github.com/goxjs/gl