Commit Graph

74 Commits

Author SHA1 Message Date
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
Hajime Hoshi
3d01084a2a Hide structs in internal/ui 2015-01-02 03:25:31 +09:00
Hajime Hoshi
96f5315c49 Add internal/ui module 2015-01-02 02:13:27 +09:00
Hajime Hoshi
5f4aa33edf Reduce currentUI usages 2015-01-01 04:30:10 +09:00
Hajime Hoshi
e10bcb3dd8 Move some methods to opengl.Context 2014-12-31 19:27:41 +09:00
Hajime Hoshi
dc6a153c65 Add opengl.Context.NewShader 2014-12-31 16:12:13 +09:00
Hajime Hoshi
fbcd04cda8 Add opengl.Framebuffer.SetAsViewport 2014-12-31 15:22:15 +09:00
Hajime Hoshi
450a8da267 Rename internal/opengl -> internal/graphics 2014-12-31 02:55:17 +09:00
Hajime Hoshi
957b4d392f Refactoring: Hide some functions of opengl 2014-12-31 02:06:08 +09:00
Hajime Hoshi
22035e79fe Reduce panics (#16) 2014-12-29 00:21:40 +09:00
Hajime Hoshi
ccd8fcac3d Fix comments 2014-12-27 23:29:56 +09:00
Hajime Hoshi
325e05259a Introduce ImagePart again 2014-12-27 17:37:31 +09:00
Hajime Hoshi
7849a68cd0 Remove DrawImageAt 2014-12-26 23:01:47 +09:00
Hajime Hoshi
ffab448d40 Rename ColorGeometry -> ColorM, GeometryMatrix -> GeoM (#27) 2014-12-26 22:50:25 +09:00