Hajime Hoshi
1679555bbb
internal/ui: fix a wrong comment
2024-07-07 01:05:40 +09:00
Hajime Hoshi
ed73f028c7
internal/ui: refactoring
2024-07-04 16:58:45 +09:00
Hajime Hoshi
3a18b32cbd
internal/ui: bug fix: the screen size must be initialized first even when the canvas is unfocused
...
Closes #3034
2024-07-04 16:17:19 +09:00
Hajime Hoshi
def82fd5d3
internal/atlas: refactoring: remove ImageTypeVolatile
...
ImageTypeVolatile was meaningful when Ebitengine had `restorable`
package, but now this doesn't make sense.
2024-06-30 18:50:02 +09:00
Hajime Hoshi
32417353d3
internal/ui: bug fix: the window size callback was not called on macOS
...
This is basically a revert of e150745598
.
As the window size callback was not called, ebiten.WindowSize didn't
work correctly for a while.
Even after this change, the issue #2257 could not be reproduced. This
is mysterious, but probably macOS itself has updated.
Updates #2257
Closes #3029
2024-06-30 15:59:15 +09:00
Hajime Hoshi
96e0fd7a50
exp/textinput: bug fix: pressing enter key was often ignored on iOS Safari
...
Closes #3015
2024-06-12 02:44:51 +09:00
Bertrand Jung
22fd1f107e
internal/graphics: renamed shader image count to specify src ( #3012 )
...
This just specifies that the constant refers to the number of source images passed to a shader.
This makes a distinction with the number of dst images, that could potentially be more than 1 in the future.
2024-06-10 02:02:47 +09:00
Hajime Hoshi
e5d10c47e7
internal/graphicsdriver: reland: rename FillRule constants
...
Updates #3006
2024-06-08 12:16:20 +09:00
Hajime Hoshi
6ac1270cb0
Revert "internal/graphicsdriver: rename FillRule constants"
...
This reverts commit ab4a3af1b5
.
Reason: compile error on Windows
2024-06-08 12:10:27 +09:00
Hajime Hoshi
ab4a3af1b5
internal/graphicsdriver: rename FillRule constants
...
Updates #3006
2024-06-08 11:54:46 +09:00
Hajime Hoshi
c3b9afe8c4
internal/ui: bug fix: compile error for browsers
2024-05-04 00:30:43 +09:00
Hajime Hoshi
1ebfa8b911
internal/ui: refactoring: remove unused code
2024-05-04 00:26:40 +09:00
Hajime Hoshi
903ab6727b
internal/ui: better panic message at ReadPixels before RunGame
...
Closes #2979
2024-05-03 16:36:19 +09:00
Hajime Hoshi
35e29a29e7
internal/ui: bug fix: wrong property names were specified
...
Closes #2975
2024-04-30 23:32:54 +09:00
Hajime Hoshi
bb799da51f
internal/ui: use atomic.Int32 instead of atomic.Store/LoadInt32
...
Updates #2422
2024-04-29 21:53:43 +09:00
Hajime Hoshi
f34932151d
all: use atomic.Bool instead of atomic.Store/LoadUint32
...
Updates #2422
2024-04-29 21:16:01 +09:00
Hajime Hoshi
9dc103491a
internal/ui: bug fix: a window was shown unexpectedly at start-up
...
Closes #2951
2024-04-07 02:55:48 +09:00
Hajime Hoshi
d6f7b50387
internal/ui: bug fix: setting a size failed for an invisible window
...
Updates #2725
Closes #2951
2024-04-06 22:26:01 +09:00
Hajime Hoshi
fd2c79398e
Revert "internal/atlas: refactoring: ensure ReadPixels to be processed in a frame"
...
This reverts commit 55702a7c28
.
Reason: This didn't work with the single-thread mode.
Updates #1704
Closes #2939
2024-03-26 13:10:00 +09:00
Hajime Hoshi
d04d6271d0
internal/ui: bug fix: reset some input states on blur events on browsers
...
Closes #2874
2024-03-24 16:03:17 +09:00
Hajime Hoshi
f4029aaa77
ebiten: add (*Monitor).Size() to replace ScreenSizeInFullscreen()
...
Also, this change fixes redundant checks the case when a monitor
does not exist. Now Ebitengine checks a monitor existence at the
initialization.
Closes #2145
Closes #2795
2024-03-23 23:32:43 +09:00
Hajime Hoshi
7389f9ddb2
ebiten: add KeyIntlBackslash
...
Updates #2921
2024-03-12 12:49:02 +09:00
Hajime Hoshi
c9a973c6c1
internal/ui: bug fix: needed to focus the window at launch
...
Updates #2725
Closes #2924
2024-03-10 12:44:28 +09:00
Hajime Hoshi
c0d9954b3e
exp/textinput: use native pixels for a candidate window position
2024-03-03 23:35:34 +09:00
Hajime Hoshi
3e4c47eb70
internal/ui: refactoring
2024-03-03 23:27:02 +09:00
Hajime Hoshi
732eedf2e0
all: use github.com/ebitengine/gomobile instead of golang.org/x/mobile
...
Closes #2748
Closes #2899
2024-02-24 22:07:27 +09:00
Hajime Hoshi
40f3cbe1e3
internal/ui: bug fix: DeviceScaleFactor should be initialized asap on Android
...
Closes #2913
2024-02-24 19:48:20 +09:00
Hajime Hoshi
6d898d752e
ebiten: add (*Monitor).DeviceScaleFactor()
...
This replaces ebiten.DeviceScaleFactor().
Updates #2795
2024-02-12 17:09:03 +09:00
Hajime Hoshi
67d947d37a
internal/ui: remove Bounds
2024-02-12 15:24:00 +09:00
Hajime Hoshi
60725eba86
ebiten: add RunGameOptions.X11ClassName and X11InstanceName
...
Closes #2904
2024-02-11 19:31:29 +09:00
Hajime Hoshi
0adc1ad681
internal/ui: make virtual keyboard keys work at least on Android
...
Updates #2898
2024-02-03 21:11:54 +09:00
Hajime Hoshi
7dd22fdc61
internal/ui: refactoring: rename uiKeyToJSKey to uiKeyToJSCode
2024-02-03 15:13:12 +09:00
Hajime Hoshi
6736bb56ec
internal/ui: make a separate package to hide a console
...
Updates #2896
2024-01-28 22:42:58 +09:00
Hajime Hoshi
373e61d054
internal/ui: call hideConsole at init
2024-01-28 22:05:47 +09:00
Hajime Hoshi
11394d246f
internal/ui: bug fix: check the error of TimeBeginPeriod
2024-01-28 14:25:17 +09:00
Hajime Hoshi
7e4cdf5211
internal/ui: use a more precise timer for Windows
...
When SetScreenClearedEveryFalse(false) and SetVsyncEnabled(false),
Draw might not be called as often as expected on Windows due to its
timer precision. This change improves the situation.
Updates #2889
2024-01-28 14:15:20 +09:00
Hajime Hoshi
8551cd350f
internal/ui: bug fix: need to sleep when swapping buffers is skipped
...
Closes #2890
2024-01-24 12:20:30 +09:00
Hajime Hoshi
7b3eae3dcb
internal/ui: reland: move dotsBuffer from internal/ui.Image to internal/buffered.Image
...
This is a reland of fb426cd0dd
.
This is a refactoring as 'caching' things should be in internal/buffered,
but also this is a performance optimization to make pixels and dotsBuffer
work well together.
2024-01-16 12:45:43 +09:00
Hajime Hoshi
b2759b66f9
Revert "internal/ui: move dotsBuffer from internal/ui.Image to internal/buffered.Image"
...
This reverts commit fb426cd0dd
.
Reason: processtest (TestPrograms/issue2089) failed (flaky)
2024-01-16 02:56:24 +09:00
Hajime Hoshi
fb426cd0dd
internal/ui: move dotsBuffer from internal/ui.Image to internal/buffered.Image
...
This is a refactoring as 'caching' things should be in internal/buffered,
but also this is a performance optimization to make pixels and dotsBuffer
work well together.
2024-01-16 02:08:41 +09:00
Hajime Hoshi
9539a87b17
all: drop the support of gomobile-build
...
Closes #2741
2024-01-08 00:43:26 +09:00
Hajime Hoshi
2da56c00c8
internal/ui: remove renderThread
...
Updates #2714
2024-01-02 17:14:38 +09:00
theinternetftw
5774cf808f
internal/ui: show window after first draw on glfw ( #2875 )
...
Fixes #2725 by avoiding the flash in the first place. Showing the
window this way was already default on macOS; This makes it default
for all glfw platforms.
Closes #2725
2023-12-29 14:16:54 +09:00
Hajime Hoshi
338b8957e8
internal/graphicscommand: add Terminate
...
This change reduces a render thread usage in internal/ui.
Updates #2714
2023-12-27 02:28:55 +09:00
Hajime Hoshi
4895ae7f93
internal/graphicsdriver/opengl: refactoring: move some functions from internal/ui
...
Updates #2714
2023-12-23 22:30:13 +09:00
Hajime Hoshi
b73d63da29
internal/glfw: change the default client API to No-API
2023-12-21 04:05:13 +09:00
Hajime Hoshi
4ef7b5c166
internal/graphicsdriver/opengl: refactoring: hide SetGLFWClientAPI
...
Updates #2714
2023-12-20 02:47:19 +09:00
Hajime Hoshi
f6f0cf05e6
internal/ui: refactoring: move updateVsyncOnRenderThread to the OpenGL driver
...
Updates #2714
2023-12-20 02:38:20 +09:00
Hajime Hoshi
6fd18150d8
internal/graphicsdriver/opengl: move egl
to the package opengl
...
Updates #2714
2023-12-19 23:41:14 +09:00
bsski
b8df1217c3
all: fix typos ( #2864 )
2023-12-17 22:42:34 +09:00