News for hackers. Stuff that matters.
Re:OpenGL in 2014 by shurcooL on Sunday September 21, 2014 @04:56PM (#8348273)
My current approach is to use Go and target WebGL as the lowest common denominator, but with OpenGL (and/or OpenGL ES) backends as well.

That way graphics code written once can run on OS X, Linux, Windows, browser (including iOS).

Re:OpenGL in 2014 by ndesaulniers on Sunday September 21, 2014 @05:27PM (#8348375)
How do you target WebGL with Go? Is it possible to cross compile Go to JS?
Re:OpenGL in 2014 by graetzer on Sunday September 21, 2014 @06:13PM (#8348519)
It seems there is a cross compiler for Go https://github.com/gopherjs/gopherjs There are also bindings for WebGL https://github.com/gopherjs/webgl
Re:OpenGL in 2014 by shurcooL on Monday September 22, 2014 @02:08AM (#8349469)
As graetzer said, I use GopherJS and WebGL bindings.

For a simple example, see https://github.com/shurcooL/play/commit/cd45204c1b2d89062255....