SFML community forums
Help => General => Topic started by: etixpp on June 02, 2013, 02:58:24 pm
-
Is there a way to bind a Sfml game into a website? Like a java applet?
-
Since SFML doesn't provide anything to do so, you must find generic tools to run C++ apps into the browser. Google's NaCl (Native Client) does this, if I remember correctly.
You can also use the java binding.
-
I've not done so, but someone may want to look into emscripten (https://github.com/kripken/emscripten/wiki). It's an LLVM to Javascript compiler. Since you can compile C++ to LLVM, and then that to Javascript, it may be possible to port parts of SFML to Javascript.
However, this may need to wait until SFML supports OpenGL 2.0 ES, since it turns the OpenGL calls to WebGL.