Commit Graph

9813 Commits

Author SHA1 Message Date
Hajime Hoshi
619436a47b internal/ui: refactoring: add monitor_glfw.go 2023-09-16 00:16:00 +09:00
Hajime Hoshi
dd2768d5f3 internal/ui: bug fix: introduce locks for monitors
Updates #1853
2023-09-15 03:59:13 +09:00
Hajime Hoshi
32bd565df9 internal/ui: bug fix: setWindowMonitor was processed even when the same monitor was specified
Updates #1835
2023-09-15 03:30:15 +09:00
Hajime Hoshi
b710ff17c8 internal/ui: bug fix: wait for a while after exiting fullscreen on macOS
Closes #2758
2023-09-15 03:19:37 +09:00
Hajime Hoshi
90accfba1e internal/ui: bug fix: do not call PollEvents on Windows and Linux
Updates #2296
2023-09-15 03:11:58 +09:00
Hajime Hoshi
568e98ef1c internal/ui: bug fix: call setOrigWindowPos on entering fullscreen
Closes #2757
2023-09-15 02:53:38 +09:00
Hajime Hoshi
f7a801d591 internal/ui: refactoring 2023-09-15 02:45:31 +09:00
Hajime Hoshi
06d1c68506 update gomobile 2023-09-15 02:30:36 +09:00
Hajime Hoshi
9a5ef1b553 internal/ui: bug fix: disable window size limitation on fullscreen
Closes #2260
2023-09-15 02:19:20 +09:00
Hajime Hoshi
0e19cd10be internal/shader: add type checks for a bitwise operator + assignment
Closes #2754
2023-09-13 04:17:46 +09:00
Hajime Hoshi
1f67518319 internal/shader: clean up tests 2023-09-13 03:57:20 +09:00
Hajime Hoshi
320cec8869 internal/shaderir: refactoring 2023-09-13 03:25:42 +09:00
Hajime Hoshi
267eadbac7 update Oto to v3.1.0-alpha.3 2023-09-13 01:21:11 +09:00
Hajime Hoshi
19413c2805 internal/shader: refactoring: move type deduction to shaderir package
Updates #2754
2023-09-13 00:18:47 +09:00
Hajime Hoshi
5e30e1ee1d internal/shader: refactoring 2023-09-12 03:27:30 +09:00
Hajime Hoshi
73e4423fe7 internal/shader: bug fix: bitwise operators with assignment didn't work
Closes #2752
Updates #2754
2023-09-12 03:15:28 +09:00
Hajime Hoshi
c13980158f internal/shader: add type checks for bitwise operators
Updates #2754
2023-09-12 02:40:42 +09:00
Hajime Hoshi
b88d02851f .github/workflows: change triggers 2023-09-11 17:44:20 +09:00
Hajime Hoshi
41c7852c7d internal/ui: sort selectors in alphabetical order 2023-09-11 02:15:42 +09:00
TotallyGamerJet
5dc293fe4f
internal/ui: use new OBJC API (#2750)
Updates #1162
2023-09-11 02:05:42 +09:00
Hajime Hoshi
be771268ed .github/workflows: update actions 2023-09-08 23:27:09 +09:00
Hajime Hoshi
e4a25cc79f update dependencies 2023-09-08 12:30:44 +09:00
Hajime Hoshi
1ce5ad3148 update dependencies 2023-09-08 01:05:35 +09:00
Hajime Hoshi
361c89073a ebiten: bug fix: wrong conversion of 16bit to 8bit color values
Closes #2749
2023-09-06 21:24:01 +09:00
Hajime Hoshi
55bfc02509 internal/processtest: use (*testing.T).TempDir 2023-09-06 11:37:27 +09:00
Hajime Hoshi
ab893ad9c8 update gomobile
Now this includes the fix for golang/go#62458.
2023-09-06 11:24:25 +09:00
Hajime Hoshi
1622132779 Revert "reland: update gomobile"
This reverts commit 203824dfcd.

Reason: building hajimehoshi/go-inovation failed: https://github.com/hajimehoshi/ebiten/actions/runs/6086922390/job/16514373032

This is an issue in gomobile.
2023-09-06 01:13:45 +09:00
Hajime Hoshi
203824dfcd reland: update gomobile 2023-09-06 00:49:17 +09:00
Hajime Hoshi
acabc1a528 Revert "update gomobile"
This reverts commit 66d24c3bb4.

Reason: build failures on GitHub Actions: https://github.com/hajimehoshi/ebiten/actions/runs/6085843387/job/16510865632
2023-09-06 00:12:34 +09:00
Hajime Hoshi
66d24c3bb4 update gomobile 2023-09-05 23:15:53 +09:00
Hajime Hoshi
9259951c36 update CODE_OF_CONDUCT.md 2023-09-05 22:35:13 +09:00
Hajime Hoshi
20ddfba983 internal/shader: bug fix: error in assinments to multiple variables
Closes #2747
2023-09-04 02:21:45 +09:00
Hajime Hoshi
1bbded8653 internal/shader: bug fix: wrong local variable index was used for assignments
Closes #2655
2023-09-04 01:23:03 +09:00
Hajime Hoshi
f82114e8eb internal/shader: add parseFor
Updates #1897
2023-09-03 17:15:39 +09:00
Hajime Hoshi
f30a58a393 internal/ui: bug fix: disable global functions after the game termination
Closes #2743
2023-09-02 15:38:41 +09:00
Hajime Hoshi
6e968558b1 internal/ui: bug fix: setRunning(true) must be called after the main thread is set
Some functions like ebiten.SetCursorMode use `running` to detect
whether the game starts or not. If the game starts, the main thread
must exist, but there was a timing when `running` was true but the
main thread didn't exist.

This change fixes this issue by changing the timing to call
`setRunning(true)` after the main thread initialization and before
`initOnMainThread`. `initOnMainThread` assumes that `running` is
true.

Closes #2742
2023-09-02 04:24:51 +09:00
Hajime Hoshi
841e3caddf revert gomobile version
This reverts these commit:

* 7f0a86f32c.
* b615aaf673.

Reason: Test failures. See golang/go#62415
2023-09-02 02:12:06 +09:00
Hajime Hoshi
7f0a86f32c .gitub/workflows: add -compat=1.17 to go-mod-tidy
This is due to a new dependency on golang.org/x/exp/shiny from
gomobile.
2023-09-02 01:22:36 +09:00
Hajime Hoshi
b615aaf673 update gomobile 2023-09-02 01:16:06 +09:00
Hajime Hoshi
fedfceff32 update Oto to v3.1.0-alpha.2 2023-09-01 00:13:05 +09:00
Hajime Hoshi
d9757138a7 internal/restorable: use clearImage to clear a region
This is an improvement for https://github.com/hajimehoshi/ebiten/issues/2676#issuecomment-1650325027

Updates #2676
2023-08-31 23:32:54 +09:00
Hajime Hoshi
e082ea73dc internal/restorable: reuse empty byte slices for ClearPixels
This is an improvement for https://github.com/hajimehoshi/ebiten/issues/2676#issuecomment-1650325027

Updates #2676
2023-08-31 23:02:40 +09:00
Hajime Hoshi
7ed2d73406 internal/builtinshader: bug fix: wrong blending rate
The blending rate of colors in a square vertices should be calculated
by the lower-right point, not the upper-left point.

mix(a, b, rate) function calculates (1-rate)*a + rate*b, so a should
be weighted if rate is close to 0, and b should be weighted if rate
is close to 1. The current implementation was opposite.

Rendering results don't seem to be changed so much actually, but the
current implementation doesn't make sense.
2023-08-31 15:11:37 +09:00
Hajime Hoshi
9ad9bc9ed9 ebiten: bug fix: wrong interpolation in the screen shader 2023-08-31 13:28:01 +09:00
Hajime Hoshi
0e1b73f94f ebiten: simplify the screen shader 2023-08-31 12:56:45 +09:00
Hajime Hoshi
ad2d8977b6 ebiten: update a comment 2023-08-31 11:50:15 +09:00
Hajime Hoshi
009fb504ed internal/builtinshader: remove adjustments for tie-breaking
This seems no longer needed with the pixel mode.

This was confirmed by this test:

```
go run . -run=TestImageLinearFilterGlitch2
```

The same change didn't work at b5ca404c42
but worked at 49582519c1, which
introduced the pixel mode.

Updates #1212
2023-08-30 23:55:44 +09:00
Ketchetwahmeegwun T. Southall
60b7de6a3c
ebiten: add APIs to treat monitors (#2597)
This change adds these APIs:

* `type MonitorType`
* `func (*MonitorType) Bounds() image.Rectangle`
* `func (*MonitorType) Name() string`
* `func Monitor() *MonitorType`
* `func SetMonitor(*MonitorType)`
* `func AppendMonitors([]*MonitorType) []*MonitorType`

Closes #1835
2023-08-30 21:02:04 +09:00
Hajime Hoshi
b1b4335423 update Oto 2023-08-29 15:13:40 +09:00
Hajime Hoshi
98ead195c6 audio: bug fix: deadlock between a player and a context
Closes #2737
2023-08-29 14:52:48 +09:00