Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Web Application  (Read 2329 times)

0 Members and 1 Guest are viewing this topic.

etixpp

  • Jr. Member
  • **
  • Posts: 82
    • View Profile
    • FoxFire Development Website
    • Email
Web Application
« on: June 02, 2013, 02:58:24 pm »
Is there a way to bind a Sfml game into a website? Like a java applet?

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Re: Web Application
« Reply #1 on: June 02, 2013, 07:05:28 pm »
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.
Laurent Gomila - SFML developer

MorleyDev

  • Full Member
  • ***
  • Posts: 219
  • "It is not enough for code to work."
    • View Profile
    • http://www.morleydev.co.uk/
Re: Web Application
« Reply #2 on: June 02, 2013, 09:42:57 pm »
I've not done so, but someone may want to look into emscripten. 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.
UnitTest11 - A unit testing library in C++ written to take advantage of C++11.

All code is guilty until proven innocent, unworthy until tested, and pointless without singular and well-defined purpose.

 

anything