David Crawshaw
6cf9d880ce
bind/java: ensure there is enough capacity for writing seq
...
The new testLongString triggers the bug without this change.
Fixes golang/go#9251 .
Change-Id: I463e2897b5b08f53801f151c7311d591546c0719
Reviewed-on: https://go-review.googlesource.com/1373
Reviewed-by: Hyang-Ah Hana Kim <hyangah@gmail.com>
2014-12-11 17:53:23 +00:00
David Crawshaw
96c0ef1480
all: update docs to remove code.google.com
...
Fixes golang/go#9259 .
Change-Id: I4768ce0a2abc56100e6616bacdf6aad196639b10
Reviewed-on: https://go-review.googlesource.com/1370
Reviewed-by: Hyang-Ah Hana Kim <hyangah@gmail.com>
2014-12-11 14:15:30 +00:00
David Crawshaw
71604ab0e3
bind/java: give mktemp a template for darwin hosts
...
Change-Id: I4bf795cfe76daae9a922c671722db3e2fa44a0c0
Reviewed-on: https://go-review.googlesource.com/1320
Reviewed-by: Hyang-Ah Hana Kim <hyangah@gmail.com>
2014-12-10 21:53:24 +00:00
Hana (Hyang-Ah) Kim
748d0d3152
Dockerfile: update to download go from git and utilize volume mount.
...
Change-Id: Ib7d32298f6ee7f74e5c6e0da7e1022ed6a23283a
Reviewed-on: https://go-review.googlesource.com/1310
Reviewed-by: David Crawshaw <crawshaw@golang.org>
2014-12-10 20:28:06 +00:00
David Crawshaw
ce2d014f4a
README.md: rewrite to describe Dockerfile builds
...
Change-Id: Ibfdd36f306d9a52f226904aa99653dc1b932410b
Reviewed-on: https://go-review.googlesource.com/1289
Reviewed-by: Hyang-Ah Hana Kim <hyangah@gmail.com>
2014-12-10 18:57:44 +00:00
David Crawshaw
32030f7750
app: build fake auxv
...
Some Android systems cannot read from /proc/self/auxv. Work around
this by creating a minimal fake auxv for the Go runtime.
Fixes #9229
Change-Id: Id2d743f43d91be23006aac708a5b5b5cd60a6dca
Reviewed-on: https://go-review.googlesource.com/1284
Reviewed-by: Hyang-Ah Hana Kim <hyangah@gmail.com>
2014-12-10 17:26:16 +00:00
David Symonds
7b659348a5
mobile: add import comments.
...
Change-Id: I0ff6d42a8e11f49df6fc3066e86be75015b93631
Reviewed-on: https://go-review.googlesource.com/1238
Reviewed-by: Andrew Gerrand <adg@golang.org>
2014-12-10 01:59:04 +00:00
Hana (Hyang-Ah) Kim
969a1bf7dd
example/libhellojni: fix build and allow go get golang.org/x/mobile/...
...
Change-Id: Id0cd58705c882ea58cedbee5a6e9aff010c0ad4d
Reviewed-on: https://go-review.googlesource.com/1281
Reviewed-by: Andrew Gerrand <adg@golang.org>
2014-12-10 01:38:44 +00:00
Hana (Hyang-Ah) Kim
daf6d8060b
gl: use go generate to generate gldebug.go by invoking gendebug.go
...
Change-Id: I7d682d153da5b200f9dd5cea8d09d76935daa18c
Reviewed-on: https://go-review.googlesource.com/1225
Reviewed-by: David Crawshaw <crawshaw@golang.org>
2014-12-09 17:31:03 +00:00
David Crawshaw
81f7d26930
gl: regen gldebug.go and stop logging on glBoolean
...
Change-Id: Icad6cb694b31924164483609e0fd9c7cce8e3f0d
Reviewed-on: https://go-review.googlesource.com/1185
Reviewed-by: Hyang-Ah Hana Kim <hyangah@gmail.com>
2014-12-08 23:39:28 +00:00
David Crawshaw
23d89f24b5
gl: merge gl_linux.go and gl_darwin.go
...
C changes the types silently, so there's no need for the code to be
different (beyond the standard header ifdef boilerplate).
Change-Id: I0eddb5fa050c083cdac9db499634bf3d1bb9bb04
Reviewed-on: https://go-review.googlesource.com/1184
Reviewed-by: Hyang-Ah Hana Kim <hyangah@gmail.com>
2014-12-08 21:38:56 +00:00
David Crawshaw
410ed12d25
gl: convert Glclampf to GLfloat in C to avoid variations between GL headers
...
Change-Id: I2ff85d2b4529fc12e08404c93266b827dd88b8ef
Reviewed-on: https://go-review.googlesource.com/1183
Reviewed-by: Hyang-Ah Hana Kim <hyangah@gmail.com>
2014-12-08 20:15:17 +00:00
David Symonds
25a2f7c74d
remove codereview.cfg.
2014-12-08 10:59:03 +11:00
David Symonds
7886d8711c
convert .hgignore to .gitignore.
2014-12-08 10:43:03 +11:00
David Crawshaw
0274bdc8dd
x/mobile/example/gopher: remove example
...
Moved to github.com/crawshaw/gopher3d for now, to simplify
the licensing story for the go.mobile subprepository.
LGTM=hyangah
R=hyangah
CC=golang-codereviews
https://golang.org/cl/182550043
2014-12-05 14:50:40 -05:00
David Crawshaw
2d6073265a
x/mobile/app: Open function for basic asset management
...
LGTM=hyangah
R=hyangah
CC=golang-codereviews
https://golang.org/cl/187740044
2014-12-05 13:52:06 -05:00
David Crawshaw
5875cc8cf7
x/mobile/go: remove GLES2 headers
...
LGTM=nigeltao
R=rsc, nigeltao
CC=golang-codereviews
https://golang.org/cl/174590043
2014-12-05 10:14:12 -05:00
David Crawshaw
a67e60175f
x/mobile/app: remove gl.CULL_FACE
...
Leave this up to the apps. Right now the current face culling
direction does not match glimage.
LGTM=nigeltao
R=hyangah, nigeltao
CC=golang-codereviews
https://golang.org/cl/185870043
2014-12-05 09:59:45 -05:00
David Crawshaw
fb47a1752b
x/mobile/app: zero buffer at end of read
...
LGTM=hyangah
R=hyangah
CC=an.olive.tree, golang-codereviews
https://golang.org/cl/176130045
2014-12-04 14:29:48 -05:00
Hana Kim
404af530f0
mobile/bind/java: update the test.bash to build apk for test.
...
Requires gradle.
LGTM=crawshaw
R=crawshaw
CC=golang-codereviews
https://golang.org/cl/180480043
2014-12-03 17:39:00 -05:00
David Crawshaw
551dbd1f07
go.mobile/bind/java: support JNI_EDETACHED
...
LGTM=adonovan
R=adonovan
CC=golang-codereviews
https://golang.org/cl/144780043
2014-12-03 15:24:48 -05:00
Hana Kim
0283b981d1
mobile/Dockerfile: install gradle.
...
LGTM=crawshaw
R=crawshaw, golang-codereviews
CC=golang-codereviews
https://golang.org/cl/181460043
2014-12-02 15:07:20 -05:00
Shenghou Ma
f456aa415e
go.mobile/gl: fix typos.
...
Fixes golang/go#9151 .
LGTM=crawshaw
R=crawshaw, nathan.behary
CC=golang-codereviews
https://golang.org/cl/180160043
2014-11-23 17:42:30 -05:00
David Crawshaw
2d225d30b6
x/mobile/sprite/clock: clamp linear tween
...
LGTM=hyangah
R=hyangah
CC=golang-codereviews
https://golang.org/cl/175450043
2014-11-20 16:45:16 -05:00
David Crawshaw
fb724b9af0
go.mobile/example/libhello: remove superfluous ln
...
LGTM=hpw
R=golang-codereviews, hyangah, hpw
CC=golang-codereviews
https://golang.org/cl/139600043
2014-11-20 13:35:41 -05:00
David Crawshaw
0df569094b
x/mobile/example/sprite: use SubTex in example
...
Fixes golang/go#9107
LGTM=nigeltao
R=nigeltao
CC=golang-codereviews, yliu
https://golang.org/cl/177800043
2014-11-16 09:59:23 -05:00
David Crawshaw
10b4dcd412
go.mobile/sprite: replace Sheet/Texture with Texture/SubTex
...
LGTM=nigeltao
R=nigeltao
CC=golang-codereviews
https://golang.org/cl/172050044
2014-11-11 20:46:47 -05:00
Hana Kim
50b4d219bf
go.mobile: update bind/java/SeqTest.java to pass.
...
- Suppressed testJavaRefKeep for now.
LGTM=crawshaw
R=crawshaw
CC=golang-codereviews
https://golang.org/cl/170000045
2014-11-11 09:55:39 -05:00
Hana Kim
74f141279c
go.mobile: use golang.org/x/mobile.
...
LGTM=adg
R=adg
CC=golang-codereviews
https://golang.org/cl/171420043
2014-11-11 09:37:33 -05:00
Nigel Tao
86c05e810c
go.mobile/sprite/glsprite: first cut of a glsprite Engine.
...
Also add the example/sprite program.
LGTM=crawshaw
R=crawshaw
CC=golang-codereviews
https://golang.org/cl/170270043
2014-11-11 09:39:37 +11:00
Hana Kim
32f2370535
go.mobile/bind: include the bind invocation command in generated files.
...
This change also updates bind/testdata/*.golden.
LGTM=crawshaw
R=crawshaw
CC=golang-codereviews
https://golang.org/cl/167160043
2014-11-10 13:46:47 -05:00
Andrew Gerrand
9470e0ba58
go.mobile: use golang.org/x/... import paths
...
LGTM=bradfitz, rsc
R=rsc, bradfitz
CC=golang-codereviews
https://golang.org/cl/162710043
2014-11-10 08:55:57 +11:00
David Crawshaw
385a1a25f7
go.mobile/sprite/portable: accept any image type as a source
...
Clip source bounds to the minimum of src and mask, for the case
where src is an *image.Uniform.
LGTM=nigeltao
R=nigeltao
CC=golang-codereviews
https://golang.org/cl/167310044
2014-11-06 20:51:36 -05:00
David Crawshaw
f973591b21
go.mobile/sprite/portable: bilinear fast path for *image.Uniform
...
LGTM=nigeltao
R=golang-codereviews, nigeltao
CC=golang-codereviews
https://golang.org/cl/172060043
2014-11-06 20:50:34 -05:00
Hana Kim
c2dd086961
go.mobile/example/libhello: fix typo.
...
LGTM=crawshaw
R=crawshaw
CC=golang-codereviews
https://golang.org/cl/172740043
2014-11-05 14:00:48 -05:00
Hana Kim
d53d8c3f80
go.mobile/bind/java: update javatest.go to build.
...
LGTM=crawshaw
R=crawshaw
CC=golang-codereviews
https://golang.org/cl/171850043
2014-11-05 13:09:06 -05:00
David Crawshaw
df04a5b449
go.mobile/sprite/portable: support masks in affine transform
...
LGTM=nigeltao
R=nigeltao
CC=golang-codereviews
https://golang.org/cl/166100043
2014-11-04 08:51:09 -05:00
Nigel Tao
3e603f3a38
go.mobile/gl/glutil: enable glimage_test on linux/X11.
...
LGTM=crawshaw
R=crawshaw
CC=golang-codereviews
https://golang.org/cl/167020043
2014-11-03 10:31:19 +11:00
David Crawshaw
9bbfe1ee47
go.mobile/sprite/portable: fix sub-image zero bound bug in affine
...
Also, modify the affine test to share the test
image with the glimage test.
LGTM=nigeltao
R=nigeltao
CC=golang-codereviews
https://golang.org/cl/164400043
2014-11-01 07:48:58 -04:00
David Crawshaw
b208e914e7
go.mobile/gl/glutil: take advantage of new degree of freedom in test
...
LGTM=nigeltao
R=nigeltao
CC=golang-codereviews
https://golang.org/cl/166030043
2014-11-01 07:48:07 -04:00
Nigel Tao
970a0a0162
go.mobile/gl/glutil: let Image.Draw draw non-axis-aligned quads.
...
LGTM=crawshaw
R=crawshaw
CC=golang-codereviews
https://golang.org/cl/160710043
2014-10-31 14:32:34 +11:00
David Crawshaw
0ac70a3835
go.mobile/gl/glutil, go.mobile/app/debug: create glimage with pixel size
...
LGTM=nigeltao
R=nigeltao
CC=golang-codereviews
https://golang.org/cl/165940043
2014-10-30 19:43:51 -04:00
David Crawshaw
fd18e8dcec
go.mobile/gl/glutil: correct image size and switch to testpattern.png
...
LGTM=nigeltao
R=nigeltao
CC=golang-codereviews
https://golang.org/cl/167910043
2014-10-30 17:30:38 -04:00
David Crawshaw
897e5be307
go.mobile/gl/glutil: use correct image bounds in translation
...
I have included the gl.LINEAR bugfix here as it changes the
images substantially.
Based on Nigel's excellent analysis in cl/160710043.
LGTM=nigeltao
R=nigeltao
CC=golang-codereviews
https://golang.org/cl/168820043
2014-10-30 17:26:23 -04:00
Nigel Tao
50e85e8344
go.mobile/testdata: add a test pattern image.
...
LGTM=adg
R=crawshaw, adg
CC=golang-codereviews
https://golang.org/cl/162450043
2014-10-30 18:22:16 +11:00
David Crawshaw
e406fcc9dd
go.mobile/sprite/portable: package docs
...
LGTM=nigeltao
R=nigeltao
CC=golang-codereviews
https://golang.org/cl/162370044
2014-10-29 09:32:18 -04:00
Nigel Tao
2457abfa93
go.mobile/f32: add a f32.Bytes function.
...
LGTM=crawshaw
R=crawshaw
CC=golang-codereviews
https://golang.org/cl/166720044
2014-10-29 09:19:38 +11:00
Nigel Tao
34a31a192f
go.mobile/geom: consolidate two small files into one.
...
Also fix a typo in "Pacakge geom".
LGTM=crawshaw
R=crawshaw
CC=golang-codereviews
https://golang.org/cl/159630043
2014-10-29 09:18:41 +11:00
Nigel Tao
f458564116
go.mobile/example/basic: strip the "core" from the shaders'
...
"# version 100 core", as Ubuntu 14.04's OpenGLES doesn't like it:
"shader compile: 0:1(10): error: illegal text following version number"
LGTM=adg, crawshaw
R=crawshaw, bryanturley, adg
CC=golang-codereviews
https://golang.org/cl/163260043
2014-10-28 12:08:26 +11:00
Nigel Tao
b3557d6b50
go.mobile/app: add comment about X11 library dependencies.
...
LGTM=adg, crawshaw
R=crawshaw, adg
CC=golang-codereviews
https://golang.org/cl/159530043
2014-10-28 12:07:47 +11:00