213
edits
Line 304: | Line 304: | ||
= Converting C/C++ games to Javascript = | = Converting C/C++ games to Javascript = | ||
[http://emscripten.org/ Emscripten] | |||
* [http://emscripten.org/ Emscripten] is an open source compiler from C/C++ to JavaScript, through LLVM. | |||
** Emscripten functions as a drop-in replacement for gcc | |||
** Can compile individual libraries and provide friendly JavaScript wrappers for their C or C++ APIs, see [https://github.com/kripken/ammo.js ammo.js], a port of Bullet, and [https://github.com/kripken/box2d.js box2d.js], a port of Box2D. | |||
** Supports the main parts of APIs like libc, libc++, SDL, POSIX | |||
** Some support for OpenGL ES 2.0 exists (see [http://ehsanakhgari.org/blog/2012-01-25/porting-opengl-application-web demo]), ehsan is working on general OpenGL support. | |||
* [http://www.mandreel.com/ Mandreel] is a commercial product that similarly compiles C/C++ to JavaScript through LLVM. It also supports Objective-C and OpenGL and is more focused on compiling entire games as opposed to libraries. | |||
= High Resolution Timers = | = High Resolution Timers = |
edits