This project is currently on hold. For now it serves only as a basis for OpenGL programs in Go that work both native and in the browser.
This project is an implementation of Conway's Game of Life in Go. It uses OpenGL for visualization, which can be run both native and in a web-browser.
This is a pet-project of which the rationale can be found here. Progress can be tracked on the same blog here.
The native build is using the go-gl projects. Dependencies should be downloaded by the install
command (see below).
The web-browser build requires gopher-js and web-gl. Install them on the command line using
go get -u github.com/gopherjs/gopherjs
go get -u github.com/gopherjs/webgl
The native build is compiled, from the root of the project, calling
go install ./app/golgo
The web-browser build is compiled, from the root of the project, calling
$GOPATH/bin/gopherjs build -o ./build/golgo-js.js ./app/golgo-js/*.go
The output files will be under the build
directory, which is also referenced by the golgo-js.html
file. Open this html file in a browser supporting WebGL to run the application.
For testing, you need to have the test framework gocheck
installed:
go get gopkg.in/check.v1
To test OpenGL and all output it is necessary to create windows and/or run a browser. These tests are in the folder test
.
For these tests, another dependency is necessary to be installed:
go get bitbucket.org/tebeka/selenium
and a Selenium Server running. (Note: Not every version works as it seems; v2.39.0 works so far)
The project is available under the terms of the New BSD License (see LICENSE file).