GitXplorerGitXplorer
j

tinygo-wasm-basic-triangle

public
9 stars
0 forks
0 issues

Commits

List of commits on branch master.
Verified
0e0b59f0e27296a301c0372259b4621bdf4ce9ad

Updated for TinyGo 0.12.0+

jjustinclift committed 5 years ago
Verified
109511f64f27804b46b98c3d9bcd519bc6cf7acf

Updated to work with Tinygo 0.10.0-dev + Go 1.13

jjustinclift committed 5 years ago
Verified
e4d49e6ab01cff57fe8eea6a1b7996c804eb187c

Add link to the running demo

jjustinclift committed 6 years ago
Verified
359cb2f1d5ae189548619abd83dab0c7eaaf9c1a

Initial commit

jjustinclift committed 6 years ago

README

The README file for this repository.

This is just simple research code, directly copied from bobcob7, to see if TinyGo wasm can be used for WebGL.

Running demo:

    https://justinclift.github.io/tinygo-wasm-basic-triangle/

Original source:

    https://github.com/bobcob7/wasm-basic-triangle

To compile the WebAssembly file:

$ tinygo build -target wasm -no-debug -o docs/wasm.wasm main.go

To strip the custom name section from the end (reducing file size further):

$ wasm2wat docs/wasm.wasm -o docs/wasm.wat
$ wat2wasm docs/wasm.wat -o docs/wasm.wasm
$ rm -f docs/wasm.wat