source-engine icon indicating copy to clipboard operation
source-engine copied to clipboard

Emscripten/WebAssembly Compilation Option (NOT AN ISSUE)

Open JVGA8837 opened this issue 2 years ago • 3 comments
trafficstars

Just wondering if it's possible for the engine to be compiled to the web as it is C/C++ code which WebAssembly supports, although the graphics engine may have to be changed.

Here's the link to emscripten's documentation if needed

JVGA8837 avatar Oct 16 '23 00:10 JVGA8837

I could be completely wrong here but Emscripten supports converting OpenGL calls to WebGL calls if that means anything at all. Would love to see another port but I can tell Windows ARM32 is getting the most attention right now so i'll be patient especially since I have no code knowledge.

JVGA8837 avatar Oct 17 '23 02:10 JVGA8837

useless dead crap

SanyaSho avatar Oct 17 '23 13:10 SanyaSho

Just wondering if it's possible for the engine to be compiled to the web as it is C/C++ code which WebAssembly supports, although the graphics engine may have to be changed.

Here's the link to emscripten's documentation if needed

I have been trying to do this for a bit now! I am pretty sure you can just replace the compiler (presumably gcc or g++) with emcc

expected-ingot avatar Nov 17 '23 16:11 expected-ingot