Commit Graph

87 Commits

Author SHA1 Message Date
Hajime Hoshi
0429c9c3e6 graphics: image's texture may be nil and this must be considered when disposing 2016-02-21 01:41:48 +09:00
Hajime Hoshi
63f2c3cb9f graphics: Refactoring: remove ExecOnUIThread 2016-02-20 04:39:43 +09:00
Hajime Hoshi
eb9379c3a6 image: Bug fix: isDisposed misimplementation 2016-02-07 03:20:52 +09:00
Hajime Hoshi
27f1a865aa image: Use SetFinalizer for images (#67) 2016-02-07 02:24:35 +09:00
Hajime Hoshi
e8c2e5f3d6 image: Add image.Dipose and image.IsDisposed 2016-02-07 01:27:55 +09:00
Hajime Hoshi
1e738f6a10 image: Remove image.DrawLines (#142) 2016-02-06 17:52:05 +09:00
Hajime Hoshi
07d64da098 image: Remove image.DrawLine (#142) 2016-02-06 17:49:26 +09:00
Hajime Hoshi
5c8df39496 image: Remove image.DrawFilledRects (#142) 2016-02-06 17:47:02 +09:00
Hajime Hoshi
b5ed0e3d6d image: Remove image.DrawRect (#142) 2016-02-06 17:46:05 +09:00
Hajime Hoshi
85279e8422 image: Remove image.DrawFilledRect (#142) 2016-02-06 17:45:08 +09:00
Hajime Hoshi
580effba8e image: Remove image.DrawRects (#142) 2016-02-06 17:20:10 +09:00
Hajime Hoshi
bb8a94ad09 Rename files 2016-02-05 23:20:41 +09:00
Hajime Hoshi
633ee4096e #132 Temporal hack to run with Go1.5 2015-07-22 23:28:15 +09:00
Hajime Hoshi
95316a1de5 image: Cache size 2015-02-18 04:01:11 +09:00
Hajime Hoshi
beecf31937 Resolve some TODOs 2015-02-10 10:44:58 +09:00
Hajime Hoshi
249add3979 Add SetScreenSize 2015-02-09 11:02:04 +09:00
Hajime Hoshi
23b3f1afce Move some files of internal/ui to the root 2015-01-27 01:10:17 +09:00
Hajime Hoshi
ae450433db Move some files of internal to internal/graphics 2015-01-27 00:08:24 +09:00
Hajime Hoshi
346bc53d53 Move internal/opengl -> internal/graphics/internal/opengl 2015-01-26 23:27:28 +09:00
Hajime Hoshi
b57c675996 Remove internal.RGBA 2015-01-24 14:53:40 +09:00
Hajime Hoshi
2ab7c2eb9b image: Add test 2015-01-22 11:27:50 +09:00
Hajime Hoshi
afe4c76b50 image: Bug fix: pixels must be reset after any drawing (TODO: add test) 2015-01-22 04:27:27 +09:00
Hajime Hoshi
f88f48f0ae Comment fix 2015-01-21 00:42:27 +09:00
Hajime Hoshi
d994f34d53 Add image.ReplacePixels; Add example/noise (#89) 2015-01-20 23:58:58 +09:00
Hajime Hoshi
0bd0a4dbc2 Rename image.FillRect -> DrawFilledRect (FillRect is confusing with Fill) 2015-01-18 04:19:38 +09:00
Hajime Hoshi
26358f3e63 Revert lines' vetices (float64 -> int) 2015-01-17 23:33:57 +09:00
Hajime Hoshi
f0d40b4e1f Revert rectangles' vetices (float64 -> int) 2015-01-17 23:31:09 +09:00
Hajime Hoshi
1659e9abab Bug fix: Line's vertices should be moved by 0.5 2015-01-17 23:04:19 +09:00
Hajime Hoshi
683ffafe8d Bug fix: image.Pixels didn't work on WebGL 2015-01-17 19:06:58 +09:00
Hajime Hoshi
7835f5cb2e Add image.DrawRect / DrawRects (leaving some bugs) 2015-01-17 15:46:56 +09:00
Hajime Hoshi
5ff2b8697f Bug fix: comment 2015-01-17 15:01:04 +09:00
Hajime Hoshi
8c15b57d58 Add image.DrawLine / DrawLines 2015-01-17 14:17:42 +09:00
Hajime Hoshi
22e6996f74 Remove rectVertexQuads 2015-01-17 03:51:21 +09:00
Hajime Hoshi
887e2fc675 Add image.DrawRect; Change Rects.Points -> Rects.Rect 2015-01-17 03:46:00 +09:00
Hajime Hoshi
8564ba8541 Use (un)signed short vertices (#90) 2015-01-16 10:37:26 +09:00
Hajime Hoshi
155be5a88d Add Rect.Color 2015-01-16 01:57:10 +09:00
Hajime Hoshi
25cf2dab22 sprites: Speed up: use float64 as often as possible 2015-01-14 23:58:34 +09:00
Hajime Hoshi
0328b049d0 Add image.DrawRects (experimental) 2015-01-13 10:36:19 +09:00
Hajime Hoshi
01dbc515b5 Remove innerImage 2015-01-12 19:54:25 +09:00
Hajime Hoshi
21455a146d Refactoring: Add imageparts.go 2015-01-12 18:41:06 +09:00
Hajime Hoshi
0332b8d5ed Bug fix: image comment 2015-01-11 04:20:28 +09:00
Hajime Hoshi
4eaba93c73 Bug fix: image can't draw itself (#45) 2015-01-06 23:50:02 +09:00
Hajime Hoshi
b69c526613 Update comment 2015-01-05 23:55:40 +09:00
Hajime Hoshi
2be0aa7f0c Fix comment 2015-01-05 10:08:54 +09:00
Hajime Hoshi
f697501531 Use ImageParts 2015-01-05 10:08:00 +09:00
Hajime Hoshi
cdc29210db Introduce ImageParts 2015-01-05 09:32:27 +09:00
Hajime Hoshi
2f02a0a223 Avoid copying 2015-01-03 17:07:01 +09:00
Hajime Hoshi
13a94d3446 Avoid type switch 2015-01-03 15:52:02 +09:00
Hajime Hoshi
1117862d19 Avoid copying for performance 2015-01-03 14:23:31 +09:00
Hajime Hoshi
449bc7931d Change receiver ColorM.Element and GeoM.Element to pointers (performance issue) 2015-01-03 01:54:12 +09:00