Commit Graph

1778 Commits

Author SHA1 Message Date
Hajime Hoshi
ef61e7a568 examples/2048: Bug fix: Should not add a new tile when no tiles are moved 2016-07-29 03:41:55 +09:00
Hajime Hoshi
399d29b1a0 examples/2048: Draw texts 2016-07-29 01:52:21 +09:00
Hajime Hoshi
90b6e3871a examples/2048: Draw colored tiles 2016-07-29 01:26:44 +09:00
Hajime Hoshi
d9ee460b20 examples/2048: Add tests 2016-07-29 00:00:12 +09:00
Hajime Hoshi
0a04ed1c22 examples/2048: Refactoring 2016-07-28 22:34:20 +09:00
Hajime Hoshi
30a16cbcbe examples/2048: Implement the rule 2016-07-28 12:36:31 +09:00
Hajime Hoshi
8daa246da4 Add examples/2048 (#181) 2016-07-28 04:30:10 +09:00
Hajime Hoshi
8855df40e4 gprahics: Bug fix: Check if an image is disposed before resetting pixels (examples/windowsize crashes) 2016-07-28 01:17:57 +09:00
Hajime Hoshi
5e1ed99e2e Use files in examples (#243) 2016-07-28 01:10:40 +09:00
Hajime Hoshi
4ad5c65efe graphics: Rename s/ensure/resolveStale/ 2016-07-27 23:08:28 +09:00
Hajime Hoshi
9b6b5372ef pixels: Remove image member 2016-07-27 12:24:30 +09:00
Hajime Hoshi
3bc2239a3b pixels: Bug fix: Update image member when creating a new image 2016-07-27 12:13:54 +09:00
Hajime Hoshi
b901d2acb1 graphics: Avoid ReadPixels when the image is volatile 2016-07-27 03:09:56 +09:00
Hajime Hoshi
3724815f21 pixels: Rename functions 2016-07-27 02:50:53 +09:00
Hajime Hoshi
459046f52a pixels: Ensure pixels is not stale when restoring 2016-07-27 02:25:08 +09:00
Hajime Hoshi
e0894879f1 pixels: Remove IsStale 2016-07-27 02:20:42 +09:00
Hajime Hoshi
56732d9a23 pixels: Add 'stale' member 2016-07-27 02:17:27 +09:00
Hajime Hoshi
c18756352d pixels: Refactoring 2016-07-27 01:54:23 +09:00
Hajime Hoshi
5c56058d6e pixels Rename s/history/dependency/ 2016-07-27 01:28:16 +09:00
Hajime Hoshi
eff0ec8e11 graphics: Remove unneeded calls ReplacePixels 2016-07-26 12:47:45 +09:00
Hajime Hoshi
c5f3eaf925 graphics: Refactoring 2016-07-26 12:28:05 +09:00
Hajime Hoshi
2e0b7da614 grahics: Add comments 2016-07-26 12:24:07 +09:00
Hajime Hoshi
40427b6263 pixels: Bug fix: Reset pixels correctly 2016-07-26 11:40:41 +09:00
Hajime Hoshi
0fc61ed568 pixels: Rename fuctions 2016-07-26 10:51:48 +09:00
Hajime Hoshi
558f559323 graphics: Remove pixels when inconsistent 2016-07-26 10:35:24 +09:00
Hajime Hoshi
1ec503e1b5 pixels: Add comments 2016-07-25 10:38:41 +09:00
Hajime Hoshi
939284820c pixels: Bug fix: Remove IsCleared: pixels state might not match with actual state 2016-07-25 10:22:37 +09:00
Hajime Hoshi
c0eb01d69e pixels: Rename s/flush/reset/ 2016-07-25 09:10:51 +09:00
Hajime Hoshi
95dae4ad45 pixels: Remove 'inconsistent' property 2016-07-25 09:01:00 +09:00
Hajime Hoshi
931e60902f graphics: Refactoring 2016-07-25 08:48:58 +09:00
Hajime Hoshi
f6be72fba2 Add internal/pixels 2016-07-25 02:28:59 +09:00
Hajime Hoshi
000958df56 Remove imageForPixels 2016-07-25 02:07:39 +09:00
Hajime Hoshi
62acfb5b0a graphics: Don't use GeoM/ColorM in pixels. Use graphics.Matrix instead 2016-07-24 06:46:47 +09:00
Hajime Hoshi
3ea6033c3d graphics: Don't ref *Image in pixels. Ref *graphics.Image instead 2016-07-24 06:22:33 +09:00
Hajime Hoshi
9bbd5e89c3 graphics: Bug fix: GL context is not available until graphics context is initialized 2016-07-24 06:02:04 +09:00
Hajime Hoshi
e118a755f5 ui: Bug fix: Sizing also calls GLContext 2016-07-24 05:29:47 +09:00
Hajime Hoshi
efe64d56f4 ui: Bug fix: Avoid dead lock 2016-07-24 04:32:12 +09:00
Hajime Hoshi
b5f51dbccc graphics: imageImpl has pixels as a pointer 2016-07-24 03:39:25 +09:00
Hajime Hoshi
7649236712 graphics: Add pixels.makeInconsistent 2016-07-24 02:53:33 +09:00
Hajime Hoshi
b3aa567f38 graphics: Add imageForPixels 2016-07-24 01:50:22 +09:00
Hajime Hoshi
8d074ecc20 graphics: Add Pixel's 'inconsistent' state 2016-07-24 01:28:39 +09:00
Hajime Hoshi
75916490b7 graphics: Better name functions 2016-07-24 00:46:24 +09:00
Hajime Hoshi
1f4c78c41c graphcis: Fix a comment 2016-07-24 00:09:50 +09:00
Hajime Hoshi
c5e42c91be ui: Add glcontext.go 2016-07-24 00:05:36 +09:00
Hajime Hoshi
b146e5d1b4 graphics: Bug fix: Errors should be returned after checking the history 2016-07-24 00:02:45 +09:00
Hajime Hoshi
806eb44258 graphics: Return errors when GLContext is missing 2016-07-23 22:24:40 +09:00
Hajime Hoshi
121063ee2b ui: Initialize GLContext at Start 2016-07-23 22:17:36 +09:00
Hajime Hoshi
5a3ea34cfc ui: Delay initializing the context 2016-07-23 21:43:35 +09:00
Hajime Hoshi
3553fc55c3 ui: Unify the context thread and the UI thread 2016-07-23 21:22:59 +09:00
Hajime Hoshi
8371426888 ui: Refactoring 2016-07-23 21:01:30 +09:00