Skip to content

A project that uses webgl, written in c++ compiled to wasm with clang.

Notifications You must be signed in to change notification settings

beProsto/wasm-webgl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

83 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

C++ for wasm with WebGL

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/

About

A project that uses webgl, written in c++ compiled to wasm with clang.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published