4 ms·
Anyone know if I can easily port an OpenGL ES-1.1 based application, written in C++, to FirefoxOS? Or will I have to re-write it in HTML5/js?
by fit2rule 12y ago
Anyone know if I can easily port an OpenGL ES-1.1 based application, written in C++, to FirefoxOS? Or will I have to re-write it in HTML5/js?
- dangoor 12y agoYou could probably do it with Emscripten. https://github.com/kripken/emscripten https://github.com/kripken/emscripten
- higherpurpose 12y agoYou can probably compile it to asm.js and use WebGL (OpenGL ES 2.0).
- frik 12y agoYou can compile your C++ with emscripten to asm.js target. HTML5 has WebGL which is based OpenGL ES 2.0. More than 95% of all FirefoxOS devices support WebGL and the number of FirefoxOS users is increasing rapidly: http://webglstats.com http://webglstats.com I suggest you this blog series, this guy ported his OpenGL game demos to WebGL and wrote long articles about it (Part 77 - 82): http://www.sea-of-memes.com/LetsCode77/LetsCode77.html http://www.sea-of-memes.com/LetsCode77/LetsCode77.html
- ndesaulniers 12y agoI wrote a book chapter in the upcoming book "WebGL Insights" to be published in August on just the subject. The answer is yes, if you port your OpenGL ES 1.0 code to OpenGL ES 2.0. The WebGL 1.0 spec is basically just a diff of the ES 2.0 spec. Then Emscripten can do most of the rest. I'm assuming your code is C++.