wasm-webgl
January 14, 2022 ยท View on GitHub
A cross-platform D application that can be compiled both to machine code or wasm. It renders graphics using OpenGL 3.3 or WebGL 2 and includes a tiny betterC runtime.
Warning: highly experimental!
Usage
By default this project targets desktop platforms. To compile WebAssembly do the following:
- Install latest LDC, Node.js, Rollup
- Install NPM dependencies:
npm install - Build wasm module:
dub build --config=web --build=release --compiler=ldc2 --build-mode=allAtOnce - Build the bundle and run test server:
npm run bundle
