Hajime Hoshi
342551da8d
examples: Add iOS explanation
2018-04-30 19:49:02 +09:00
Hajime Hoshi
1d70ee7988
examples: gomobilebuild build tag is no longer needed
2018-04-30 19:43:29 +09:00
Hajime Hoshi
a355d701ad
inpututil: Replace JustDisconnectedGamepadIDs with IsGamepadJustDisconnected ( #505 )
2018-04-30 04:35:10 +09:00
Hajime Hoshi
e4ee3100db
ui: Fix comments
2018-04-30 03:58:04 +09:00
Hajime Hoshi
52dea245dc
examples/blocks: Use IsGamepadButtonJustPressed
2018-04-30 03:43:50 +09:00
Hajime Hoshi
ea1444ea7e
shareable: Add checks at operations for disposed images
2018-04-30 03:34:35 +09:00
Hajime Hoshi
9df977dff8
shareable: Add 'disposed' state instead of 'allocated' state
2018-04-30 03:30:10 +09:00
Hajime Hoshi
b1c55f395f
examples/gamepad: Refactoring
2018-04-30 03:07:02 +09:00
Hajime Hoshi
c9a244f498
inpututil: Admit some functions to return nil
2018-04-30 03:03:12 +09:00
Hajime Hoshi
e33ca9a4c1
inpututil: Add comments
2018-04-30 02:52:56 +09:00
Hajime Hoshi
9d57350a42
inpututil: Add JustConnectedGamepadIDs / JustDisconnectedGamepadIDs
...
Fixes #505
2018-04-30 02:51:38 +09:00
Hajime Hoshi
7a94b49a33
inpututil: Make JustPressedTouches deterministic
2018-04-30 02:43:08 +09:00
Hajime Hoshi
8c258cce7d
inpututil: Rename states -> durations
2018-04-30 02:19:53 +09:00
Hajime Hoshi
5dc1df3260
shareable: Fix tests
2018-04-29 19:15:04 +09:00
Hajime Hoshi
1f1847c259
shareable: Remove println
2018-04-29 19:10:36 +09:00
Hajime Hoshi
9c408dce7c
shareable: Lazy allocation ( #592 )
...
Clear is called when an image becomes a render target, and it
looks like Clear causes the memory spikes.
Before this change, when an image is created, shared region on a GL
texture is allocated. After that, the image's region is copied to
non-shared region when the image becomes a rendering target.
After this change, an image is not allocated on a GL texture first,
and allocated only when it is necessary. Then, Clear calls can be
avoided as much as possible.
2018-04-29 18:51:51 +09:00
Hajime Hoshi
916c7aac8a
restorable: Fix comments
2018-04-29 13:49:33 +09:00
Hajime Hoshi
45afb6db67
Reland: restorable: Merge Clear to ReplacePixel
2018-04-29 13:40:18 +09:00
Hajime Hoshi
81dfc13b21
text: Remove duplicated glyphs
2018-04-28 22:50:45 +09:00
Hajime Hoshi
452a9b14a4
graphics: Rename EBITEN_DUMP_IMAGES_KEY to EBITEN_INTERNAL_IMAGES_KEY
2018-04-28 22:24:03 +09:00
Hajime Hoshi
a36bb5dffd
graphics: Changed screenshot image location for consistency
2018-04-28 22:19:24 +09:00
Hajime Hoshi
613f384cb5
graphics: Add EBITEN_DUMP_IMAGES_KEY
...
Fixes #589
2018-04-28 22:08:20 +09:00
Hajime Hoshi
eb357f61b5
restorable: Bug fix: Calling At must resolve the image's stale state
2018-04-28 21:56:20 +09:00
Hajime Hoshi
245dde9bc1
graphics: Refactoring: screenshot dump: remove global variables
2018-04-28 05:01:12 +09:00
Hajime Hoshi
177f4c5108
docs: Remove some redundant comments
2018-04-28 03:40:59 +09:00
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