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

Author Topic: Is SFML Compatable with Emscripten (Webassembly)?  (Read 352 times)

0 Members and 1 Guest are viewing this topic.

JohnnyUrosevic

  • Newbie
  • *
  • Posts: 1
    • View Profile
    • Email
Is SFML Compatable with Emscripten (Webassembly)?
« on: May 18, 2020, 03:26:07 am »
I know this has been posted before, but that was years ago and webassembly / emscripten have evolved a lot. I know emscripten hooks into cmake to make webassembly compatable .so files. Has anyone had success with this? Or is there something about SMFL currently that would make this not work

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 9507
    • View Profile
    • development blog
    • Email
Re: Is SFML Compatable with Emscripten (Webassembly)?
« Reply #1 on: May 19, 2020, 09:40:11 am »
The main issue as mentioned in all the other threads isn't the integration or building, but the fact that SFML currently does not support OpenGL ES 2 and thus doesn't work with Emscripten.

There are still ongoing efforts in changing the handling of shaders in order to make SFML work with OpenGL ES 2.
Official FAQ: https://www.sfml-dev.org/faq.php
Nightly Builds: https://www.nightlybuilds.ch/
——————————————————————
Dev Blog: https://dev.my-gate.net/
Thor: http://www.bromeon.ch/libraries/thor/