commit | 59ab51f73fedbb89e6f813d81b50d004cbe48465 | [log] [tgz] |
---|---|---|
author | David Crawshaw <crawshaw@golang.org> | Sat Aug 08 10:18:15 2015 -0400 |
committer | David Crawshaw <crawshaw@golang.org> | Wed Sep 23 23:46:16 2015 +0000 |
tree | 86ee318710fbf9d071f7a6bb766e86e0c30c793b | |
parent | ae2f847064de6791e37ed012ebe4579948d22a01 [diff] |
gl: move to context methods All OpenGL functions are now methods on a Context interface. The gl.Context matches the one loaded into thread-local storage in C. For mobile apps, the context is owned by an app.App. For now, it is provided through the events channel on a lifecycle event. Long-term, it should probably be available by a method on app.App, but this is inherently racey with our current use of a channel to deliver events. Shiny-based programs will have a gl.Context associated with a each shiny.Window. The expectation is each Window will have different contexts, allowing them to draw separately. Change-Id: Ie09986fb74e493129f2ea542a151c95c6fa29812 Reviewed-on: https://go-review.googlesource.com/13431 Reviewed-by: Nigel Tao <nigeltao@golang.org>
The Go mobile repository holds packages and build tools for using Go on mobile platforms.
Package documentation as a starting point:
The Go Mobile project is experimental. Use this at your own risk. While we are working hard to improve it, neither Google nor the Go team can provide end-user support.
This is early work and installing the build system requires Go 1.5. Follow the instructions on golang.org/wiki/Mobile to install the gomobile command, build the basic and the bind example apps.
Contributions to Go are appreciated. See https://golang.org/doc/contribute.html.