This project uses Clang to compile C++ to wasm. With that, the C++ (wasm) code will be able to communicate with JS to use WebGL.
As for external or additional libraries and code, this project uses OpenLibm as an alternative to the standard math library (./src/openlibm/) and Max Klein's malloc implementation for wasm (./src/utils/include/malloc.hpp & ./src/utils/src/malloc.cpp). No others at this point in time.
To run the project on windows, use the run.cmd
file.
To run it on linux, use run.sh
.
You can check out the results here! :D
Here's how a triangle made using this looks like:
Music (music.mp3) from: https://freesound.org/people/Timbre/sounds/617036/