/wasm-webgl

WebAssembly + WebGL with D

Primary LanguageD

wasm-webgl

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!

Screenshot

Usage

By default this project targets desktop platforms. To compile WebAssembly do the following:

  1. Install latest LDC, Node.js, Rollup
  2. Install NPM dependencies: npm install
  3. Build wasm module: dub build --config=web --build=release --compiler=ldc2 --build-mode=allAtOnce
  4. Build the bundle and run test server: npm run bundle