app: darwin/amd64 rendering improvements

The full set of event.LifecycleStages are now plumbed through.

More user control over the window, in particular it:
- takes focus correctly on start
- can now be closed and minimized
- can be hidden (allowing testing of LifecycleStageAlive)

Flickering during resize has been eliminated by triggering draws from
a second thread. This encouraged the introduction of a dedicated draw
loop in Go, which makes responsibility for GL calls a little more
like android/x11.

Change-Id: I63982f20bd4859601e2a27915f60f6c8083a176f
Reviewed-on: https://go-review.googlesource.com/11733
Reviewed-by: Nigel Tao <nigeltao@golang.org>
2 files changed
tree: c52586697ac936502624284f861ceeba412eeba4
  1. app/
  2. asset/
  3. bind/
  4. cmd/
  5. event/
  6. example/
  7. exp/
  8. geom/
  9. gl/
  10. testdata/
  11. .gitattributes
  12. .gitignore
  13. AUTHORS
  14. codereview.cfg
  15. CONTRIBUTING.md
  16. CONTRIBUTORS
  17. Dockerfile
  18. LICENSE
  19. PATENTS
  20. README.md
README.md

Go support for Mobile devices

The Go mobile repository holds packages and build tools for using Go on Android.

This is early work and installing the build system requires Go 1.5. Follow the build instructions on godoc.org/golang.org/x/mobile/cmd/gomobile to install the gomobile command and build the basic example.


APIs are currently very limited, but under active development. Package documentation serves as a starting point:


Contributions to Go are appreciated. See https://golang.org/doc/contribute.html.