Commit Graph

35 Commits

Author SHA1 Message Date
Hajime Hoshi
495d7ca0d1 graphics: NextPowerOf2Int -> NextPowerOf2Int32 2016-02-27 02:35:05 +09:00
Hajime Hoshi
5fe013ddbd graphics: Remove Lines and Rects 2016-02-27 02:30:06 +09:00
Hajime Hoshi
169d57936c graphics: Speed improvement by returning single value 2016-02-17 00:21:39 +09:00
Hajime Hoshi
ef4828669c graphics: Bug fix: must skip rendering when 0 vertices are set 2016-02-16 02:45:56 +09:00
Hajime Hoshi
1e9fb05161 graphics: Move makeing vertices from drawTexture to textureQuads to avoid copying 2016-02-16 02:26:40 +09:00
Hajime Hoshi
38552f8d9d image: Remove drawing lines and rects (#142) 2016-02-06 17:57:20 +09:00
Hajime Hoshi
633ee4096e #132 Temporal hack to run with Go1.5 2015-07-22 23:28:15 +09:00
Hajime Hoshi
9ec7b13f27 example/piano: Speed up 2015-02-16 10:48:57 +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
ae450433db Move some files of internal to internal/graphics 2015-01-27 00:08:24 +09:00
Hajime Hoshi
e23b0758e5 Merge internal/graphics/internal/shaders into internal/graphics 2015-01-26 23:32:50 +09:00
Hajime Hoshi
346bc53d53 Move internal/opengl -> internal/graphics/internal/opengl 2015-01-26 23:27:28 +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
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
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
2ec8c39cdd Remove the first argument of FillFramebuffer 2015-01-15 23:42:08 +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
d96de18074 Remove TODOs 2015-01-09 12:13:29 +09:00
Hajime Hoshi
1117862d19 Avoid copying for performance 2015-01-03 14:23:31 +09:00
Hajime Hoshi
e10bcb3dd8 Move some methods to opengl.Context 2014-12-31 19:27:41 +09:00
Hajime Hoshi
4e3beb65f0 Rename Framebuffer.framebuffer -> Framebuffer.native 2014-12-31 18:00:53 +09:00
Hajime Hoshi
7597268e85 Remove dependency on go-gl/gl in framebuffer.go 2014-12-31 17:04:03 +09:00
Hajime Hoshi
dc6a153c65 Add opengl.Context.NewShader 2014-12-31 16:12:13 +09:00
Hajime Hoshi
a4a4c91eb1 Add opengl.Framebuffer.Fill 2014-12-31 15:26:06 +09:00
Hajime Hoshi
fbcd04cda8 Add opengl.Framebuffer.SetAsViewport 2014-12-31 15:22:15 +09:00
Hajime Hoshi
cc9b874dd0 Add opengl.NewTexture 2014-12-31 15:00:28 +09:00
Hajime Hoshi
450a8da267 Rename internal/opengl -> internal/graphics 2014-12-31 02:55:17 +09:00