Commit Graph

3116 Commits

Author SHA1 Message Date
Hajime Hoshi
b22cc9d4be Add periods after 'DO NOT EDIT' 2018-04-28 03:37:19 +09:00
Hajime Hoshi
0bc712422f restorable: Bug fix: Remove SetFinalizer for disposing
SetFinalizer causes concurrent issue
2018-04-27 12:08:59 +09:00
Hajime Hoshi
be3d529767 text: Bug fix: one image should be used for multiple glyphs (#535) 2018-04-26 02:41:01 +09:00
Hajime Hoshi
6caebc2310 text: Avoid creating 0-sized image 2018-04-26 02:11:45 +09:00
Hajime Hoshi
dff492955d shareable: Reset finalizer in any cases 2018-04-26 01:51:57 +09:00
Hajime Hoshi
1cf4f30541 Revert "restorable: Merge Clear to ReplacePixels"
This reverts commit fb641d88cd.

Reason: When restoring the image where ReplacePixels is called,
dummyImage might not be restored since there is no record of
relationships between this image and dummyImage. Now pixels is not
nil when reverting by chance, but this would cause problems in the
future.
2018-04-25 22:31:48 +09:00
Hajime Hoshi
fb641d88cd restorable: Merge Clear to ReplacePixels
This can avoid unnecessary stale images that requires loading
pixels from GPU.
2018-04-25 01:30:57 +09:00
Hajime Hoshi
4900d74a4d Add Evan Leis to AUTHORS 2018-04-23 23:55:22 +09:00
Evan Leis
7172e98a31 input: Do not allocate a touch slice if no touches have been made (#587)
Touches() will always allocate a new slice to copy touches into even if no touches are reported, for example on desktop. Adding a simple check makes sure that this unnecessary allocation does not happen.
2018-04-23 23:52:50 +09:00
Hajime Hoshi
059bab0b13 text: Optimization: reduce ColorM calc 2018-04-23 22:42:38 +09:00
Hajime Hoshi
5257e6f9a7 text: Unify draw calls for multiple runes (#535) 2018-04-23 22:15:45 +09:00
Hajime Hoshi
1571e04753 Revert "graphics: Call glFlush after glTexSubImage2D for MacBook Pro"
This reverts commit 7f5719fadd.

Reason: This didn't change the situation
2018-04-22 22:06:38 +09:00
Hajime Hoshi
bbed2ae8a0 Add Jake Bentvelzen to AUTHORS 2018-04-22 01:40:21 +09:00
Hajime Hoshi
0544476419 input: Fix comments 2018-04-22 01:39:28 +09:00
Jake Bentvelzen
2f4ca72dbd input: Add Pause and Print Screen buttons (#555)
Fixes #579
2018-04-21 09:36:28 -07:00
Hajime Hoshi
3fa2beb502 Fix the do-not-edit comment https://golang.org/s/generatedcode 2018-04-20 00:54:33 -07:00
Hajime Hoshi
63c33b24df graphics: Refactoring 2018-04-16 01:51:32 +09:00
Hajime Hoshi
b691e73342 Revert "graphics: Experimental fix: call glFlush always after glTexSubImage2D"
This reverts commit d2da77eb96.

Reason: This doesn't solve the issue on MacBook Late 2013.
2018-04-14 23:16:26 +09:00
Hajime Hoshi
d2da77eb96 graphics: Experimental fix: call glFlush always after glTexSubImage2D 2018-04-14 23:06:20 +09:00
Hajime Hoshi
7f5719fadd graphics: Call glFlush after glTexSubImage2D for MacBook Pro 2018-04-14 17:59:10 +09:00
Hajime Hoshi
07545c3706 examples/typewriter: consider repeating state 2018-04-14 05:39:42 +09:00
Hajime Hoshi
54bec7a3eb examples/typewriter: Refactoring: Use inpututil 2018-04-14 05:32:41 +09:00
Hajime Hoshi
fac7651152 examples/keyboard: Show other keys than 'keyboard' keys 2018-04-14 04:59:06 +09:00
Hajime Hoshi
bf304e6ac8 examples/keyboard: Refactoring: Use ebiten.Key to get the rect 2018-04-14 04:48:07 +09:00
Hajime Hoshi
9fb25693a3 examples/keyboard: Remove the last period from do-not-edit comment 2018-04-14 04:23:34 +09:00
Hajime Hoshi
d1ef57c280 input: Remove the last period from do-not-edit comment 2018-04-14 04:22:09 +09:00
Hajime Hoshi
dbe990a060 Use the latest file2byteslice 2018-04-14 04:19:11 +09:00
Hajime Hoshi
95c4ce0ddc input: Add (Key).String() 2018-04-14 03:20:43 +09:00
Hajime Hoshi
61d4df0e04 input: Add numpad keys for Edge (#580) 2018-04-14 02:43:31 +09:00
Hajime Hoshi
dd6110fbf8 input: Add KeyNumLock (#580) 2018-04-14 02:43:26 +09:00
Hajime Hoshi
5229e5a713 input: Add numpad keys except for Edge browser (#580) 2018-04-14 02:43:21 +09:00
Hajime Hoshi
30cb4bad90 doc: Add explanation about EBITEN_SCREENSHOT_KEY 2018-04-11 01:08:44 +09:00
Hajime Hoshi
888d650872 Add 'screenshot' feature
If you run your game with environment variable EBITEN_SCREENSHOT_KEY=<keyname>,
you can take a game screenshot by pressing the specified key.

Fixes #553
2018-04-11 01:00:22 +09:00
Hajime Hoshi
4708d4a6f9 Add internal/png 2018-04-10 04:17:41 +09:00
Hajime Hoshi
f2b6a5d5ff docs: Use compiled results directly instead of the playground 2018-04-09 23:23:44 +09:00
Hajime Hoshi
070c8ec737 shareable: Rename variables 2018-04-09 02:18:46 +09:00
Hajime Hoshi
c976ccc66c docs: Fix wrong links 2018-04-08 21:45:05 +09:00
Hajime Hoshi
5fa4447c7c docs: Add examples/flappy 2018-04-08 20:56:32 +09:00
Hajime Hoshi
bf3b45f929 docs: Use playground pages 2018-04-08 20:56:24 +09:00
Hajime Hoshi
f1fa8804d3 inpututil: Add JustPressedTouches and remove IsJustTouched
Fixes #576
2018-04-08 04:59:13 +09:00
Hajime Hoshi
008ed26276 graphics: Check isDisposed at (*Image).Clear and Fill 2018-04-08 01:39:06 +09:00
Hajime Hoshi
ce2168c0d6 examples/flappy: Bug fix: wrong calculation of rotating 2018-04-08 00:38:52 +09:00
Hajime Hoshi
f2e2f602c5 examples/flappy: Bug fix: first touch ID might not be 0 on iPhone Safari (#576) 2018-04-07 23:36:38 +09:00
Hajime Hoshi
35557e845d examples/flappy: Improve message 2018-04-07 23:26:28 +09:00
Hajime Hoshi
b952cb724f examples/flappy: Fullscreen on browsers 2018-04-07 22:23:50 +09:00
Hajime Hoshi
2a6672cc8b examples: Add examples/flappy 2018-04-07 22:15:45 +09:00
Hajime Hoshi
83f168a010 audio/vorbis: Bug fix: fail to decode too short ogg 2018-04-07 22:13:12 +09:00
Hajime Hoshi
86691c67e9 docs: Ebiten should be available on mobile browsers 2018-04-07 16:42:35 +09:00
Hajime Hoshi
899f007fd0 ui: Panic when error is found on mobile 2018-04-07 03:33:20 +09:00
Hajime Hoshi
2d3c6ab5b8 ui: Remove build tag 'gomobilebuild'
Fixes #573
2018-04-07 02:14:54 +09:00