Example to show how to build a simple wasm app in pur c++ using Harfang 3D engine (https://github.com/scorpheus/harfang3d/tree/main)
Download the project https://github.com/ejulien/FABGen to compile Harfang3D.
https://scorpheus.github.io/harfang_emscripten_c/build_emsdk/bin/emscripten_harfang.html
To compile see "compile_with_emscripten_note.txt" on windows WSL (works on linux too)
To create your own scene, follow the instruction on Harfang3D with the api GLES.
Example build asset on windows:
- Download assetc for your platform: https://dev.harfang3d.com/releases/
assetc.exe -api GLES -quiet -t assetc\\toolchains\\host-windows-x64-target-windows-x64 project project_compiled -platform linux