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
Hajime Hoshi
69c01ee7ef
update README
...
Ebitengine now supports keyboards for iOS.
Updates #1090
2023-08-29 01:42:20 +09:00
Hajime Hoshi
1269315f75
internal/shader: bug fix: forbid duplicated uniform variables
...
Closes #2648
2023-08-29 00:43:10 +09:00
Hajime Hoshi
446a6dc952
internal/graphics: deprecated some built-in functions
...
Updates #1870
2023-08-29 00:06:54 +09:00
Hajime Hoshi
db34930ae8
internal/graphics: add built-in Kage functions
...
This change adds these Kage functions:
* imageDstOrigin
* imageDstSrc
* imageSrcNOrigin
* imageSrcNSrc
and deprecates these functions:
* imageDstRegionOnTexture
* imageSrcRegionOnTexture
Closes #1870
2023-08-28 15:06:45 +09:00
Hajime Hoshi
101c9cbf5c
examples/flappy: use the pixels mode
2023-08-28 03:52:52 +09:00
Hajime Hoshi
101372a8c3
ebiten: allow different-size source images at DrawTrianglesShader (pixel mode)
...
Updates #1870
2023-08-28 01:39:43 +09:00
Hajime Hoshi
e1b77fefae
ebiten: update comments
...
Updates #1870
2023-08-27 23:57:07 +09:00
Hajime Hoshi
a4f8c1c1dc
ebiten: remove old comments
2023-08-27 22:02:39 +09:00
Hajime Hoshi
ead3f32df0
ebiten: refactoring
2023-08-27 21:38:54 +09:00
Hajime Hoshi
c4b8378b71
ebiten: fix typo
2023-08-27 21:21:14 +09:00
Hajime Hoshi
534370f7b1
internal/graphics: enable to specify regions for each source image
...
This is a preparation to specify different sizes of source images.
Updates #1870
2023-08-27 21:15:01 +09:00
Hajime Hoshi
4b9875295c
ebiten: refactoring: reduce local variables
2023-08-27 18:14:50 +09:00
Hajime Hoshi
3678b20c5d
ebiten: bug fix: DrawImage/DrawRectShader unexpectedly modified the given options
...
Closes #2733
2023-08-27 01:40:37 +09:00
Hajime Hoshi
dec08b9e4e
all: bug fix: relative paths for dlopen didn't work on macOS Sonoma
...
Closes #2732
2023-08-26 14:52:52 +09:00
Hajime Hoshi
592d6c57b7
internal/graphicsdriver/metal: improve an error message for Metal initialization
...
Updates #2732
2023-08-26 12:43:16 +09:00
Hajime Hoshi
4116fd3eb4
internal/debug: bug fix: add SwitchLogger to dump logs for each frame correctly
...
Closes #2731
2023-08-26 03:38:37 +09:00
Hajime Hoshi
b29fc5672c
internal/graphicscommand: use bufio to make dumping images faster
2023-08-26 00:50:45 +09:00
Hajime Hoshi
fd5e2d39c0
internal/graphics: add uniform variables for source image sizes
...
Updates #1870
2023-08-25 07:30:52 +09:00
David Poirier
7fe89b173b
examples/gamepad: bug fix: correct iteration start button in gamepad example ( #2730 )
...
Start iterating at zero instead of gamepad id (which is usually 0).
2023-08-24 16:27:35 +09:00