News for hackers. Stuff that matters.
Re:Thoughts about a WebGL-Next (2016) by shurcooL on Wednesday February 08, 2017 @09:23AM (#13598371)
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

There are no comments on this comment yet.