Commit Graph

965 Commits

Author SHA1 Message Date
Hajime Hoshi
fe91d341ac audio: Implement for desktops with OpenAL (#104) 2015-01-25 01:51:51 +09:00
Hajime Hoshi
a8e3b2b619 audio: Start implementing with OpenAL (not finished yet) 2015-01-24 22:20:09 +09:00
Hajime Hoshi
2d5ac9e987 audio: Add comments, add IsPlaying 2015-01-24 21:46:35 +09:00
Hajime Hoshi
2c7430171d audio: Add comments 2015-01-24 15:48:48 +09:00
Hajime Hoshi
edda664ca8 audio: Refactoring 2015-01-24 14:53:42 +09:00
Hajime Hoshi
b57c675996 Remove internal.RGBA 2015-01-24 14:53:40 +09:00
Hajime Hoshi
28983e4e24 Add exp/doc.go 2015-01-24 14:53:37 +09:00
Hajime Hoshi
4d702f964f audio: CurrentBytes returns the time on inserting new sound chunk 2015-01-24 14:53:33 +09:00
Hajime Hoshi
8a5c6d132e Merge branch 'audio' 2015-01-23 23:05:15 +09:00
Hajime Hoshi
d020824b3a audio: Move to exa/audio 2015-01-23 23:04:56 +09:00
Hajime Hoshi
88ac129dd6 Refactoring: only one nextInsertion is needed 2015-01-23 21:51:21 +09:00
Hajime Hoshi
8d250c6b25 audio: Add channel.nextInsertion 2015-01-23 10:58:18 +09:00
Hajime Hoshi
4b74411922 audio: Introduce channels 2015-01-23 03:02:23 +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
ba3a612ce4 Bug fix: Add 'Add' method for non-js environment 2015-01-21 10:37:15 +09:00
Hajime Hoshi
4c37efd673 Merge branch 'master' into audio 2015-01-21 10:12:14 +09:00
Hajime Hoshi
1fa39e3b8a Fix a variable name 2015-01-21 10:12:05 +09:00
Hajime Hoshi
5b41374ac7 Support touch events (esp. for mobile browsers) (#76) 2015-01-21 02:58:29 +09:00
Hajime Hoshi
3aed28b4a7 Add TestImageReplacePixels 2015-01-21 01:46:30 +09:00
Hajime Hoshi
fe62cbd357 Reduce the size of keyboard.png 2015-01-21 01:06:48 +09:00
Hajime Hoshi
106984e9c7 Update docs 2015-01-21 00:51:55 +09:00
Hajime Hoshi
f88f48f0ae Comment fix 2015-01-21 00:42:27 +09:00
Hajime Hoshi
e03076ef67 Comment fix 2015-01-21 00:02:42 +09:00
Hajime Hoshi
d994f34d53 Add image.ReplacePixels; Add example/noise (#89) 2015-01-20 23:58:58 +09:00
Hajime Hoshi
d2d32d3956 example/blocks: Use gamepad 2015-01-20 10:36:21 +09:00
Hajime Hoshi
a3adf50850 Remove gamepad.go commited wrongly 2015-01-19 22:18:41 +09:00
Hajime Hoshi
efcd44e2a1 exp/shape: Bug fix: Sin(2π) is inaccurate; Use Sin(0) instead (#98) 2015-01-19 22:16:54 +09:00
Hajime Hoshi
f8c0fff6a7 example: Bug fix: the path from runtime.Caller is not useful on JavaScript (#99) 2015-01-19 22:09:08 +09:00
Hajime Hoshi
d12477fb2a example/shape: Bug fix: The positions must be rounded (#97) 2015-01-19 10:15:46 +09:00
Hajime Hoshi
73bb576b0e Remove unneeded file 2015-01-18 21:55:17 +09:00
Hajime Hoshi
ff020e8b1c example/keyboard: Add a keyboard image 2015-01-18 21:33:59 +09:00
Hajime Hoshi
a5e335819d Add example/internal and move font rendering into it 2015-01-18 14:31:21 +09:00
Hajime Hoshi
0bd0a4dbc2 Rename image.FillRect -> DrawFilledRect (FillRect is confusing with Fill) 2015-01-18 04:19:38 +09:00
Hajime Hoshi
719cc03123 docs: Bug fix: directory must be removed by os.RemoveAll 2015-01-18 03:27:28 +09:00
Hajime Hoshi
db22bf6242 Add exp/shape package 2015-01-18 01:26:57 +09:00
Hajime Hoshi
c892f84816 example/blocks: Use FillRect (imageEmpty is no longer needed) 2015-01-18 00:05:15 +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
d91a467c53 Add TestImageDotByDotInversion 2015-01-17 16:41:03 +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
efe7b62745 Refactoring (use math.MaxUint16) 2015-01-17 14:44:47 +09:00
Hajime Hoshi
58e2f27513 Use gl.* types instead of int 2015-01-17 14:21:38 +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
f186d1b286 example/sprites: Speed up by caching the image size 2015-01-17 01:48:28 +09:00