triangles
Quick Start
Linux
sudo apt-get install libegl1-mesa-dev libgles2-mesa-dev libx11-dev # https://github.com/golang/mobile/blob/master/app/x11.go#L15
go get github.com/asimshankar/triangles
$GOPATH/bin/triangles --logtostderr
OS X
go get github.com/asimshankar/triangles
$GOPATH/bin/triangles --logtostderr
Android
Requires the Android SDK to be installed. Easiest way is to install Android
Studio. After that:
go get golang.org/x/mobile/cmd/gomobile
gomobile init
go get github.com/asimshankar/triangles
# Connect the Android device via USB
gomobile install github.com/asimshankar/triangles
# And see the application's logs.
adb logcat *:S GoLog:*
iOS
go get golang.org/x/mobile/cmd/gomobile
gomobile init
go get github.com/asimshankar/triangles
gomobile build --target=ios github.com/asimshankar/triangles
This will generate triangles.app
- Start XCode
- Plugin an iOS device to your USB port
- Navigate the XCode menus: Window --> Devices
- Select the device and then click the
+
icon on Installed Applications to select triangles.app