Hajime Hoshi
66734dc3fb
internal/restorable: reland: remove 'volatile' attribute when restorable is not used
2024-09-21 23:29:32 +09:00
Hajime Hoshi
c23358ac95
Revert "internal/restorable: remove 'volatile' attribute when restorable is not used"
...
This reverts commit 9bdc89d40f
.
Reason: Unexpected changes were included
2024-09-21 23:28:46 +09:00
Hajime Hoshi
9bdc89d40f
internal/restorable: remove 'volatile' attribute when restorable is not used
2024-09-21 23:24:59 +09:00
Hajime Hoshi
4bfcbc878c
all: update purego to v0.8.0-alpha.6
2024-09-21 22:13:01 +09:00
Hajime Hoshi
6b85d9deb0
internal/shader: add check for out-of-bounds
...
Closes #3112
2024-09-21 22:06:36 +09:00
Hajime Hoshi
eabc697022
internal/shader: add tests for arrays
2024-09-21 21:43:08 +09:00
Hajime Hoshi
e6d4eac218
internal/shader: bug fix: check the size of array initialization
...
Closes #3111
2024-09-21 21:42:50 +09:00
Hajime Hoshi
7bd3a05a45
ebiten: add TestShaderArray
2024-09-21 16:35:08 +09:00
Hajime Hoshi
24d241f1f9
exp/textinput: typo
2024-09-21 13:24:20 +09:00
Hajime Hoshi
d46c677327
Revert "internal/shader: bug fix: an index must be a constant for vectors"
...
This reverts commit 7c4f532b83
.
Updates #3011
Reason: Dynamic indices should be allowed with WebGL 2.
2024-09-19 23:42:49 +09:00
Barış
b17ae6135e
ebiten: update GeoM.Rotate() comment ( #3106 )
2024-09-17 23:47:17 +09:00
Hajime Hoshi
2270359cd4
internal/ui: remove println
2024-09-17 23:12:16 +09:00
Hajime Hoshi
24e5751ece
internal/ui: add sleep for an environment where vsync doesn't work
...
Updates #2952
2024-09-17 02:11:31 +09:00
Hajime Hoshi
50f0a8343c
internal/ui: bug fix: skipCount should be reset when the outside size changes
...
Closes #3101
2024-09-17 00:57:05 +09:00
Hajime Hoshi
d30908522a
internal/ui: bug fix: test failures
...
BeginFrame and EndFrame must be paired even if an error occurs.
2024-09-16 23:54:13 +09:00
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
SolarLune
a113687d56
ebiten: don't create a vertex copy in DrawTriangles() / DrawTrianglesShader() ( #3104 )
...
Closes #3103
2024-09-16 14:45:16 +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
429e0d8183
ebiten: refactoring
2024-09-15 18:01:53 +09:00
Hajime Hoshi
ab414558e8
ebiten: replace alias types with ints for better documentation
2024-09-15 17:22:20 +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
9a511fecb5
internal/jsutil: move to internal/graphicsdriver/opengl/gl
2024-09-14 16:10:49 +09:00
Hajime Hoshi
6940435c03
ebiten: retract RunGameOptions.StrictContextRestoration
...
Closes #3098
2024-09-14 01:15:46 +09:00
Hajime Hoshi
f63a757b1e
cmd/ebitenmobile: bug fix: need toolchain for the temporary go.mod
...
Updates #3086
2024-09-14 01:01:01 +09:00
Hajime Hoshi
dd19552f88
ebiten: update comments
...
We need more insights about launch modes.
2024-09-13 15:35:34 +09:00
Hajime Hoshi
c077ad70fd
cmd/ebitenmobile: bug fix: graceful shutdown on context lost
...
Closes #3097
2024-09-13 12:06:25 +09:00
Hajime Hoshi
4b1ae72f59
ebiten: add Draw{Image,Triangles}Options.DisableMipmaps
...
Mipmaps could be unexpectedly expensive even when we don't need mipmaps.
In order to improve performance, let's add an option to disable mipmaps.
Closes #3095
2024-09-12 22:40:16 +09:00
Hajime Hoshi
355dd453bd
internal/mipmap: refactoring
2024-09-12 17:36:17 +09:00
Hajime Hoshi
cbecbe2bad
internal/mipmap: refactoring
2024-09-12 15:55:27 +09:00
Hajime Hoshi
6389db14a2
internal/mipmap: reuse internal mipmap images whenever possible
...
Closes #3093
2024-09-12 15:30:31 +09:00
Hajime Hoshi
4bccf9d009
all: use math/rand/v2
2024-09-12 01:17:26 +09:00
Hajime Hoshi
a4bfa6cb15
all: use Go 1.21's min/max builtin functions
2024-09-12 01:01:05 +09:00
Hajime Hoshi
a36f6210c0
all: use Go 1.20 APIs
...
Closes #2746
2024-09-12 00:22:45 +09:00
Hajime Hoshi
c346c1d75b
all: update dependencies and Go version
...
Now some dependencies require Go 1.22, let's update the minimum
supported version.
2024-09-11 23:59:48 +09:00
Hajime Hoshi
df33bc3e27
all: update gomobile
2024-09-11 10:36:34 +09:00
Hajime Hoshi
60883e1a44
text/v2: add comments
2024-09-11 00:22:17 +09:00
Hajime Hoshi
813e3b28af
text/v2: add Metrics.XHeight and Metrics.CapHeight
...
Closes #3082
2024-09-11 00:15:57 +09:00
Hajime Hoshi
26feb26237
audio: add more info for errors
...
Updates ebitengine/oto#93
2024-09-10 12:29:06 +09:00
Hajime Hoshi
df821f0177
ebiten: add a warning about StrictContextRestoration
...
Updates #3089
2024-09-10 01:42:48 +09:00
Hajime Hoshi
e058bb6fd3
all: update go-text
...
Unfortunately this adds a breaking change to (*GoTextFaceSource).UnsafeInternal.
Updates #3082
2024-09-09 23:29:49 +09:00
Hajime Hoshi
15dfb02f9f
ebiten: update the comment for CursorPosition
...
CursorPosition should return a mouse cursor position on browsers
even in mobiles.
Closes #3087
2024-09-09 22:43:40 +09:00
Hajime Hoshi
a786f23e28
cmd/ebitenmobile: add comments
2024-09-09 20:55:03 +09:00
Hajime Hoshi
2a4374e012
cmd/ebitenmobile: remove setStrictContextRestoration from EbitenViewController
2024-09-09 18:05:18 +09:00
Hajime Hoshi
7cc2f8ffcd
cmd/ebitenmobile: add comments
2024-09-09 17:41:17 +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
fcef0a7c29
cmd/ebitenmobile: call setPreserveEGLContextOnPause(true) whatever the option is
...
We found that an app freezes for a little while when resuming it.
In order to improve user experience, always use
setPreserveEGLContextOnPause(true) whichever StrictContextRestoration is
true or false.
2024-09-09 15:20:04 +09:00