Commit Graph

9815 Commits

Author SHA1 Message Date
Hajime Hoshi
13d15b0ed9 .github/workflows: fix comments
Updates #2972
2024-04-29 09:58:00 +09:00
guangwu
97a9ee9601
ebitenutil: close an HTTP response body (#2971)
Signed-off-by: guoguangwu <guoguangwug@gmail.com>
2024-04-29 09:43:11 +09:00
Hajime Hoshi
f43c237c00 .github/workflows: bug fix: Wasm tests didn't work on macOS and Windows
Closes #2973
2024-04-28 21:23:29 +09:00
Hajime Hoshi
af4638d83f all: update bitmapfont to v3.1.0 2024-04-24 00:56:11 +09:00
Hajime Hoshi
bf7acd54bb text/v2: refactoring 2024-04-21 22:46:51 +09:00
Hajime Hoshi
bc9e9d8562 ebiten: move the builtin shader to internal/builtinshader
Updates #2861
2024-04-20 21:23:37 +09:00
Hajime Hoshi
21a906bc82 internal/gamepaddb: refactoring: GLFW gamepads are requried only for Windows
Updates #2964
2024-04-18 14:25:47 +09:00
Hajime Hoshi
c7eb7371f4 internal/gamepad: refactoring 2024-04-18 13:39:29 +09:00
Hajime Hoshi
c74e7fa943 internal/gamepaddb: bug fix: platform was not initialized correctly
After 6552ae1dbe, the order of the init
function calls changed, and then the platform was not initialized
correctly.

This change fixes this issue by not relying on an init function to
get the platform.

Closes #2964
2024-04-18 13:28:53 +09:00
Hajime Hoshi
11223d9fae text/v2: reuse HarfBuzzShaper
Updates #2963
2024-04-17 15:59:53 +09:00
Hajime Hoshi
9cd7b34a77 internal/glfw: reorder constants 2024-04-14 17:30:21 +09:00
Hajime Hoshi
6df42f1a4b internal/glfw: bug fix: disabling cursor doesn't work well on remote desktop
This change applies the bug fix at glfw/glfw#1276

Updates #2961
2024-04-14 16:43:39 +09:00
Hajime Hoshi
86e0bcc264 internal/glfw: bug fix: limit the DWM swap interval to Vista and 7
This change applies the bug fix at glfw/glfw#1072.

Updates #2961
2024-04-14 15:35:00 +09:00
Hajime Hoshi
d5f15f9354 internal/glfw: bug fix: posting an empty event from different goroutine fails
This change applies the bug fix at glfw/glfw#1649

After this change, an Ebitengine application always shows the menu
bar, but this should be fine for Ebitengine applications.
2024-04-14 14:44:42 +09:00
Hajime Hoshi
6ff9e2b44c internal/glfw: bug fix: too early event emitting
This change applies the bug fix at glfw/glfw#2046.
2024-04-14 14:30:06 +09:00
Hajime Hoshi
4dfb3d2fc1 internal/glfw, internal/gamepad: update GLFW to v3.3.10
Closes #2960
2024-04-14 14:11:45 +09:00
Hajime Hoshi
4647e9de53 internal/glfw, internal/gamepad: update GLFW to v3.3.9
Updates #2960
2024-04-14 01:14:22 +09:00
Hajime Hoshi
88dae9c7d4 all: update gen2brain/mpeg 2024-04-13 01:14:20 +09:00
Hajime Hoshi
4a964da0aa internal/shaderir: fix type mismatches 2024-04-12 23:42:06 +09:00
Hajime Hoshi
493db3baf3 all: update mpeg to v0.3.0 2024-04-12 21:59:07 +09:00
Hajime Hoshi
2bd9472d2c examples/video: performance optimization by encouraging BCE 2024-04-12 21:45:54 +09:00
Hajime Hoshi
c105224705 examples/video: show FPS 2024-04-12 15:16:26 +09:00
Hajime Hoshi
3c1d74b2d5 examples/texti18n: update comments 2024-04-12 12:28:15 +09:00
Hajime Hoshi
8467cafe74 examples/video: fix the title 2024-04-12 00:54:20 +09:00
Hajime Hoshi
4a87339a0a examples/video: use a shader to convert YCbCr to RGB 2024-04-12 00:47:10 +09:00
Hajime Hoshi
68cc017189 Revert "examples/video: reduce video FPS"
This reverts commit 6f3f58cb32.

Reason: decoding the video already follows the framerate of the MPEG
data and skips rendering when necessary, so there is no need to adjust
FPS from Update.
2024-04-11 22:43:48 +09:00
Hajime Hoshi
6f3f58cb32 examples/video: reduce video FPS 2024-04-11 22:06:20 +09:00
Hajime Hoshi
d3befbf89b examples: add an example to play a video
Closes #110
Updates #1768
Updates ebitengine/oto#235
2024-04-11 20:31:55 +09:00
Hajime Hoshi
ac6c346c8b all: update PureGo to v0.8.0-alpha.1 2024-04-11 01:29:44 +09:00
Hajime Hoshi
3cf3b27729 internal/graphicsdriver/opengl: refactoring: rename variables
A framebuffer's width and height are unclear. Rename them to
viewportWidth and viewportHeight.
2024-04-10 23:38:25 +09:00
lvyaoting
f6927232f2
all: fix function names in comment (#2957)
Signed-off-by: lvyaoting <lvyaoting@outlook.com>
2024-04-08 14:27:27 +09:00
Hajime Hoshi
6eee7ccc5f text/v2: rename a file 2024-04-08 10:20:01 +09:00
Hajime Hoshi
229a8d6cfd all: update PureGo 2024-04-08 02:24:25 +09:00
Hajime Hoshi
c9a3ef28eb text/v2: avoid creating an option struct when the given option is nil 2024-04-07 22:28:21 +09:00
Hajime Hoshi
2b9e307ec2 text/v2: bug fix: given options were unexpectedly modified
Closes #2954
2024-04-07 22:16:17 +09:00
Hajime Hoshi
85c0f4444b text/v2: update comments 2024-04-07 19:22:37 +09:00
Hajime Hoshi
9c070eb2f3 Revert "internal/graphicsdriver/gl: use PureGo for Linux and UNIX"
This reverts commit 5701206229.

Reason: error on Android:

```
/Users/runner/go/pkg/mod/github.com/ebitengine/purego@v0.8.0-alpha.0.20240404024320-d0aedd0f4393/func.go:301:4: too few values in struct literal of type syscall15Args
```

https://github.com/hajimehoshi/ebiten/actions/runs/8582651053/job/23521003819
2024-04-07 03:00:13 +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
5701206229 internal/graphicsdriver/gl: use PureGo for Linux and UNIX
Updates #2284
2024-04-07 02:08:40 +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
bb57fe8e15 exp/textinput: bug fix: go-vet error
Updates #1162
2024-04-04 12:41:11 +09:00
Hajime Hoshi
6f66386f07 exp/textinput: rewrite Objective-C into Go partially
Updates #1162
2024-04-04 11:59:15 +09:00
Hajime Hoshi
13039e214e all: update Oto 2024-04-04 11:56:02 +09:00
Hajime Hoshi
84a868e77e all: update PureGo
Updates ebitengine/purego#223
2024-04-04 11:52:16 +09:00
Hajime Hoshi
dfa8f21e52 text/v2: update go-text and remove unnecessary string conversions
Updates go-text/typesetting#152
2024-04-03 03:41:57 +09:00
Hajime Hoshi
b098922889 exp/textinput: typo 2024-04-02 03:09:54 +09:00
Hajime Hoshi
96a452d85c update Oto 2024-04-01 23:24:05 +09:00
Hajime Hoshi
4540ce5439 examples/scroll: update comments 2024-03-31 22:39:51 +09:00
Hajime Hoshi
4ae0712dc5 examples/scroll: support a mouse wheel 2024-03-31 19:38:36 +09:00
Hajime Hoshi
7ad9973d70 examples: add 'scroll' 2024-03-31 19:14:59 +09:00