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

Author Topic: Is it possible to embed an SFML game on a site?  (Read 5418 times)

0 Members and 1 Guest are viewing this topic.

ZakirG

  • Newbie
  • *
  • Posts: 1
    • View Profile
Is it possible to embed an SFML game on a site?
« on: August 14, 2014, 04:29:08 am »
How would one go about packaging/uploading an SFML game to a website and displaying it in a frame?

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11034
    • View Profile
    • development blog
    • Email
AW: Is it possible to embed an SFML game on a site?
« Reply #1 on: August 14, 2014, 08:08:36 am »
Not at all. ;)
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

Jesper Juhl

  • Hero Member
  • *****
  • Posts: 1405
    • View Profile
    • Email
Re: AW: Is it possible to embed an SFML game on a site?
« Reply #2 on: August 14, 2014, 09:11:41 am »
Not at all. ;)
That's not entirely true. It might not be simple or easy to do, but in theory it should be possible to use emscripten to compile the SFML C++ application to Javascript and then run it in a browser. Take a look at their examples - it's pretty impressive what they have gotten to work that way.

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11034
    • View Profile
    • development blog
    • Email
Re: Is it possible to embed an SFML game on a site?
« Reply #3 on: August 14, 2014, 09:23:49 am »
Guess I'm not enough of a web-scale hipster to consider such a thing. ;D
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

zsbzsb

  • Hero Member
  • *****
  • Posts: 1409
  • Active Maintainer of CSFML/SFML.NET
    • View Profile
    • My little corner...
    • Email
Re: Is it possible to embed an SFML game on a site?
« Reply #4 on: August 14, 2014, 02:34:19 pm »
SFML is unable to work with emscripten so you can forget that idea.


http://kripken.github.io/emscripten-site/docs/coding/multimedia_and_graphics/OpenGL-support.html
Motion / MotionNET - Complete video / audio playback for SFML / SFML.NET

NetEXT - An SFML.NET Extension Library based on Thor

thomas9459

  • Newbie
  • *
  • Posts: 49
    • View Profile
    • Email
Re: Is it possible to embed an SFML game on a site?
« Reply #5 on: August 14, 2014, 07:32:33 pm »
How much work do you think it would take to port SFML to emscripten? Would it require rewriting the entire rendering system or only a few minor changes?

Kojay

  • Full Member
  • ***
  • Posts: 104
    • View Profile
Re: Is it possible to embed an SFML game on a site?
« Reply #6 on: August 14, 2014, 09:56:53 pm »
This seems like an obvious place to mention Featherkit. It is not unlike SFML and it can use it as a back end. Then, one can switch to SDL as back end and use emscripten.