Skip to content
Multiple Examples of WebAssembly
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
Game/src
RotatingTriangle
RustExample
TealWindow
.gitignore
README.md

README.md

This project has multiple folders that have examples of how Wasm works with Emscripten in a couple of different languages (C/C++, Rust). You'll need to have emscripten installed to run these examples.

RotatingTriangle

Built using C & GLFW

  • Build: make
  • Clean: make clean
  • Build, but remove objects leaving the build dir: make dist

You can then use python -m SimpleHTTPServer 8080 and open your browser to http://localhost:8080/build/.

You can see the current version live here.

TealWindow

Built using C & GLFW

  • Build: make
  • Clean: make clean
  • Build, but remove objects leaving the build dir: make dist

You can then use python -m SimpleHTTPServer 8080 and open your browser to http://localhost:8080/build/.

RustExample

Built using Rust and wasm-pack, a simple "Hello, WebAssembly!".

To install Rust, see here.

To install wasm-pack: cargo install wasm-pack

Once you have that up: wasm-pack build Then: cd build Then: npm run serve

You can’t perform that action at this time.