3 ms·
You can find a working example in my Torus Trooper project: https://github.com/speps/tt https://github.com/speps/tt In particular, the interface between WASM a
by speps 4y ago
You can find a working example in my Torus Trooper project: https://github.com/speps/tt https://github.com/speps/tt
In particular, the interface between WASM and WebGL: https://github.com/speps/tt/blob/master/web/tt.js#L45 https://github.com/speps/tt/blob/master/web/tt.js#L45
WASM is really quite straightforward in my opinion, export a C interface and link it with whatever you need from the browser APIs.
- echelon 4y agoThis is a fantastic reference, thank you! Cool project, too.