2
0
mirror of synced 2025-02-24 15:28:28 +00:00

8 Commits

Author SHA1 Message Date
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
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
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
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
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
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
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