Hajime Hoshi
b9dce05ca1
internal/ui: skip SwapBuffers call if needed
...
Updates #2890
Updates #2952
2024-09-16 23:21:16 +09:00
Hajime Hoshi
9a8d6e7b41
internal/ui: implement (*Monitor).Size for mobiles
...
Closes #2935
2024-09-16 19:42:23 +09:00
Hajime Hoshi
4a10702f6c
internal/ui: replace deprecated APIs
...
[UIScreen mainScreen] is now deprecated.
2024-09-16 18:20:03 +09:00
Hajime Hoshi
5fe818e17d
internal/ui: refactoring: remove updateOnceSwapped
2024-09-16 02:52:53 +09:00
Hajime Hoshi
6f3f567b58
internal/ui: bug fix: recover the cursor mode when capturing fails
...
Closes #2764
2024-09-15 18:34:13 +09:00
Hajime Hoshi
e90f99bd4a
internal/ui: bug fix: InitUnfocused option didn't work
...
Updates #2924
Closes #3099
2024-09-14 17:31:26 +09:00
Hajime Hoshi
99ffe09b63
internal/ui: bug fix: skip focus check for the first update
2024-09-14 17:08:21 +09:00
Hajime Hoshi
07d29fa729
cmd/ebitenmobile: bug fix: consider EbitenSurfaceView recreation
...
On Android Emulator (Small Desktop API 32), EbitenRenderer can be
easily recreated by resizing the window. Thus, EbitenRenderer should
not have any flags like strictContextRestoration. Also, the flag
onceSurfaceCreated_ doesn't work there.
2024-09-09 16:42:57 +09:00
Hajime Hoshi
af9bd6a282
all: specify src-regions correctly
...
This parameter was not important and actually not used with usual
shaders. However, now this information will be important for the
restorable package optimization later.
There was a performance issue that was caused by srcRegions, but
now this should not happen thanks to FilterUniformVariables.
Updates #1293
2024-09-08 22:24:15 +09:00
Hajime Hoshi
30a2817ab5
internal/restorable: add Hint to optimize drawImageHistoryItem size
2024-09-08 12:24:20 +09:00
Hajime Hoshi
46cf09197b
internal/graphicscommand: enable to show shader names
2024-09-07 22:06:41 +09:00
Hajime Hoshi
35f4884a74
ebiten: add RunGameOptions.StrictContextRestration
...
This reverts commit a30f075896
.
This change adds a new option StrictContextRestration to make the
restoration optional.
Closes #3083
2024-09-07 18:36:04 +09:00
Hajime Hoshi
81c75e1b0a
Revert "internal/atlas: refactoring: remove ImageTypeVolatile"
...
This reverts commit def82fd5d3
.
Updates #3083
2024-09-07 16:54:20 +09:00
Hajime Hoshi
f98003bcd5
ebiten: add ColorSpace and RunGameOptions.ColorSpace
...
This works only for macOS Metal and WebGL so far.
Closes #2871
2024-08-28 03:03:57 +09:00
Hajime Hoshi
42209606b1
internal/ui: disable IME and enable it only when necessary
...
Closes #2918
2024-08-27 02:22:30 +09:00
Hajime Hoshi
dd63eef65e
textinput: support every environment even without IME
...
Closes #3072
2024-08-24 01:06:52 +09:00
Hajime Hoshi
35f9b1c224
ebiten: add RunGameOptions.DisableHiDPI
...
Closes #2987
2024-08-20 00:02:57 +09:00
Hajime Hoshi
26038c2ac1
internal/ui: bug fix: an unexpected scroll bar was shown
...
Closes #3066
2024-08-16 23:57:52 +09:00
Hajime Hoshi
b6ab7a10c1
internal/graphics: unify QuadVertices
...
This is a preparation for adding members to Vertex.
Updates #2640
2024-08-12 00:29:24 +09:00
Hajime Hoshi
1f03971fa9
internal/debug: reland: rename functions
2024-08-07 23:48:35 +09:00
Hajime Hoshi
fab9482e0e
Revert "internal/debug: rename functions"
...
This reverts commit 74722298a2
.
Reason: This included an unexpected change in internal/gamepad
2024-08-07 23:47:51 +09:00
Hajime Hoshi
74722298a2
internal/debug: rename functions
2024-08-07 23:42:36 +09:00
Hajime Hoshi
37a6057230
internal/ui: bug fix: increase maxSkipCount
...
Closes #3055
2024-08-04 04:16:01 +09:00
Hajime Hoshi
856b339298
internal/ui: bug fix: show a black dot at the red button when needed
...
When SetWindowClosingHandled(true) is called, a black dot should be
shown at the red button to close the window.
Closes #3020
2024-07-31 23:54:18 +09:00
Hajime Hoshi
1843f6acc1
internal/ui: bug fix: dropping multiple files didn't work on Firefox and Safari
...
Closes #3045
2024-07-31 11:50:30 +09:00
cowboy.macke
3a6aaac5ac
internal/ui: bug fix: crash by dropping an HTML element onto the canvas ( #3044 )
...
Closes #3043
2024-07-18 17:19:21 +09:00
Hajime Hoshi
f9b0451e08
internal/ui: call setRunning(true) at a more appropriate timing
2024-07-15 22:52:50 +09:00
Hajime Hoshi
38d6328e41
internal/ui: bug fix: crash on Windows
...
Updates #3042
2024-07-15 22:44:45 +09:00
Hajime Hoshi
3d385ef0aa
internal/ui: refactoring: call initOnMainThread on the main thread explicitly
...
Closes #3042
2024-07-15 22:07:47 +09:00
Hajime Hoshi
d4dc2ef5d7
internal/ui: refactoring: remove an unused member
2024-07-15 21:53:07 +09:00
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