Граф коммитов

17 Коммитов

Автор SHA1 Сообщение Дата
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
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
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
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
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 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 fab1e51609 go.mobile/geom: rename Scale to PixelsPerPt.
LGTM=crawshaw
R=crawshaw
CC=golang-codereviews
https://golang.org/cl/160160043
2014-10-22 13:50:04 +11:00
David Crawshaw 10d5c6ef91 go.mobile/sprite/portable: transform bugfixes and documentation
The 1/geom.Scale was simply an incorrect version of m.Inverse.
The texture scaling is to correct the fact that the pixels of
texture images were being conflated with the pxiels on the
screen. There is no inherent width/height implied by the pixel
dimensions of a texture.

LGTM=nigeltao
R=nigeltao
CC=golang-codereviews
https://golang.org/cl/156340044
2014-10-21 08:41:44 -04:00
David Crawshaw 90974e3a0b go.mobile/sprite/portable: support draw.Over, document affine and invert sprite matrix
Still trying to come up with some good tests for this package.

LGTM=nigeltao
R=nigeltao
CC=golang-codereviews
https://golang.org/cl/160880043
2014-10-15 09:44:21 -04:00
Nigel Tao 2b51510f07 go.mobile/sprite: use clock.Time instead of sprite.Time.
LGTM=crawshaw
R=crawshaw
CC=golang-codereviews
https://golang.org/cl/156950044
2014-10-13 09:09:32 +11:00
David Crawshaw c7a16f3e6b go.mobile/sprite: use f32.Affine and draw to backing image
LGTM=nigeltao
R=nigeltao
CC=golang-codereviews
https://golang.org/cl/146150043
2014-10-03 14:56:54 +10:00
Nigel Tao fac63c531f go.mobile/sprite: initial check-in.
Mostly just a design sketch for now.

LGTM=crawshaw
R=crawshaw
CC=golang-codereviews
https://golang.org/cl/150390043
2014-10-02 13:25:02 +10:00
David Crawshaw 4ea61e7184 go.mobile/sprite/portable: affine transform
This code is an import from my long-defunct graphics
library, code.google.com/p/graphics-go. It was
reviewed by nigeltao back in the day.

LGTM=nigeltao
R=nigeltao
CC=golang-codereviews
https://golang.org/cl/142520043
2014-09-27 03:10:15 +10:00