If you want to target OpenGL ES (i.e so you can ignore any confusing deprecated stuff) I highly recommend emscripten. It is all desktop based which means you dont need to mess around with iPhone / Android related limitations (like certificates or java/objc shim layers).
https://github.com/kripken/emscripten
It basically compiles your C/C++ code to Javascript for a WebBrowser and supports OpenGL ES 2.0 (ultimately WebGL).
You will need to compile or get hold of binaries for...
LLVM
clang
node.js
python
But then emscripten will take any standard OpenGL Core or ES2 project (including GLUT) and cross compiles to a javascript output which is pretty awesome.
One thing that is a pain is the very long compile times when you use C++. (C is fine). So what I recommend is write your code to work on both OpenGL (with a standard compile) and then use emscripten to test it works with OpenGLES.
It provides Glut, libPNG, SDL and loads of other game related libraries by default.
Show differencesHistory of post edits
#2Karsten_
Posted 09 February 2013 - 12:29 PM
If you want to target OpenGL ES (i.e so you can ignore any confusing deprecated stuff) I highly recommend emscripten. It is all desktop based which means you dont need to mess around with iPhone / Android related limitations (like certificates or java/objc shim layers).
It basically compiles your C/C++ code to Javascript for a WebBrowser and supports OpenGL ES 2.0 (ultimately WebGL).
You will need to compile or get hold of binaries for...
LLVM
clang
node.js
python
But then emscripten will take any standard OpenGL Core or ES2 project (including GLUT) and cross compiles to a javascript output which is pretty awesome.
One thing that is a pain is the very long compile times when you use C++. (C is fine). So what I recommend is write your code to work on both OpenGL (with a standard compile) and then use emscripten to test it works with OpenGLES.
It provides Glut, libPNG, SDL and loads of other game related libraries by default.
It basically compiles your C/C++ code to Javascript for a WebBrowser and supports OpenGL ES 2.0 (ultimately WebGL).
You will need to compile or get hold of binaries for...
LLVM
clang
node.js
python
But then emscripten will take any standard OpenGL Core or ES2 project (including GLUT) and cross compiles to a javascript output which is pretty awesome.
One thing that is a pain is the very long compile times when you use C++. (C is fine). So what I recommend is write your code to work on both OpenGL (with a standard compile) and then use emscripten to test it works with OpenGLES.
It provides Glut, libPNG, SDL and loads of other game related libraries by default.
#1Karsten_
Posted 09 February 2013 - 12:27 PM
If you want to only target OpenGL ES (i.e so you can ignore any confusing deprecated stuff) I highly recommend emscripten.
It basically compiles your C/C++ code to Javascript for a WebBrowser and supports OpenGL ES 2.0 (ultimately WebGL).
You will need to compile or get hold of binaries for...
LLVM
clang
node.js
python
But then emscripten will take any standard OpenGL Core or ES2 project (including GLUT) and cross compiles to a javascript output which is pretty awesome.
One thing that is a pain is the very long compile times when you use C++. (C is fine). So what I recommend is write your code to work on both OpenGL (with a standard compile) and then use emscripten to test it works with OpenGLES.
It provides Glut, libPNG, SDL and loads of other game related libraries by default.
It basically compiles your C/C++ code to Javascript for a WebBrowser and supports OpenGL ES 2.0 (ultimately WebGL).
You will need to compile or get hold of binaries for...
LLVM
clang
node.js
python
But then emscripten will take any standard OpenGL Core or ES2 project (including GLUT) and cross compiles to a javascript output which is pretty awesome.
One thing that is a pain is the very long compile times when you use C++. (C is fine). So what I recommend is write your code to work on both OpenGL (with a standard compile) and then use emscripten to test it works with OpenGLES.
It provides Glut, libPNG, SDL and loads of other game related libraries by default.