1
0
mirror of https://github.com/hajimehoshi/ebiten.git synced 2025-02-25 09:20:08 +01:00
Commit Graph

8424 Commits

Author SHA1 Message Date
TotallyGamerJet
043397c20e
internal/ui: remove Cgo on darwin in ui_glfw_darwin.go ()
Updates 
2022-09-16 11:53:46 +09:00
Hajime Hoshi
45b2bd7b2b internal/graphicsdriver/metal/mtl: remove a TODO comment 2022-09-16 11:48:59 +09:00
Hajime Hoshi
53df5aaaf0 internal/cocoa: rename _cmd to cmd 2022-09-16 02:32:12 +09:00
Hajime Hoshi
963eb2756a all: fix TODO comments 2022-09-16 02:02:02 +09:00
Hajime Hoshi
b13fa2817c internal/gamepad: clean up codes for Darwin
* Removes redundant assignments.
* Fixes types for the Apple libraries.

Updates 
2022-09-16 00:25:51 +09:00
TotallyGamerJet
4a569be6f6
internal/gamepad: remove Cgo on darwin ()
Updates 
2022-09-16 00:11:59 +09:00
Hajime Hoshi
3cafb0f6fd ebitenutil: use go:embed
Updates 
2022-09-15 23:25:24 +09:00
Hajime Hoshi
289129c9e5 examples/shader: use go:embed
Updates 
2022-09-15 23:18:49 +09:00
Hajime Hoshi
d57cd39bb9 examples/resources/images/keyboard: fix comment 2022-09-15 23:18:49 +09:00
Hajime Hoshi
6e6145541d examples/keyboard/keyboard: use go:embed
Updates 
2022-09-15 22:58:57 +09:00
Hajime Hoshi
5404e4d68a all: replace io/ioutil with io and os
Closes 
2022-09-15 02:54:25 +09:00
Hajime Hoshi
d0556af8a4 internal/atlas: refactoring 2022-09-15 01:52:05 +09:00
Hajime Hoshi
31945563d8 internal/atlas: optimize adjustDestinationPixel
```
go test -bench=BenchmarkAdjustPixel -run=^$ -count=5 ./internal/atlas/
```

```
name           old time/op  new time/op  delta
AdjustPixel-8  2.59ns ± 1%  2.12ns ± 1%  -18.16%  (p=0.008 n=5+5)
```
2022-09-15 01:50:47 +09:00
Hajime Hoshi
9319266c01 internal/atlas: add a benchmark for adjustDestinationPixel 2022-09-15 01:25:26 +09:00
Hajime Hoshi
2cbc5e7b60 internal/cocoa: remove IsIOS
Use `runtime.GOOS == "ios"` instead.

Closes 
2022-09-15 01:04:37 +09:00
Hajime Hoshi
619a2ee4dd internal/gamepaddb: use runtime.GOOS instead of a build tag
Updates 
2022-09-15 00:27:11 +09:00
Hajime Hoshi
655cd4bf68 all: remove the build tag
Updates 
2022-09-15 00:23:40 +09:00
Hajime Hoshi
35259fe09e cmd/ebitenmobile: use go:embed
Updates 
2022-09-14 23:46:11 +09:00
Hajime Hoshi
95bfa95a91 internal/graphicscommand: refactoring 2022-09-14 23:13:08 +09:00
Hajime Hoshi
2610c148e4 text: typo 2022-09-14 14:41:22 +09:00
Hajime Hoshi
86706c0335 internal/graphicsdriver/opengl: add opengles build tag
This enables to use OpenGL ES instead of OpenGL.

Closes 
2022-09-13 11:10:48 -07:00
Hajime Hoshi
f1040d0507 cmd/ebitenmobile: remove GO111MODULE usage
GO111MODULE is on by default as of Go 1.16.

Closes 
2022-09-14 02:41:47 +09:00
Hajime Hoshi
18fa00d25d internal/restorable: update comments 2022-09-14 02:20:11 +09:00
Hajime Hoshi
6179158812 internal/restorable: bug fix: no pixels were read only with DrawTriangles
Closes 
2022-09-14 02:17:14 +09:00
Hajime Hoshi
0f00eac24c .builds: remove debian.yml
io/fs cannot be imported from Go 1.15, and the default version of
Go in Debian is 1.15.

As the requried packages are almost the same as Ubuntu, tests for
Debian might be redundant. Remove it.

Updates 
2022-09-14 01:16:08 +09:00
Hajime Hoshi
b36c21648f internal/restorable: refactoring: remove a redundant FlushCommands call
readPixelsFromGPU already flushes commands.
2022-09-13 08:43:02 -07:00
Hajime Hoshi
49e2254e79 .github/workflows: drop Go 1.15 support
Updates 
2022-09-13 23:35:47 +09:00
Hajime Hoshi
6b906bb813 internal/restorable: extend the staleRegion when the image is already stale on WritePixels
This is a kind of refactoring. There seems no case that this condition
change is really needed, but this is more logical.
2022-09-13 07:29:53 -07:00
Hajime Hoshi
67ceaf5874 internal/atlas: rename replacePixels -> writePixels 2022-09-13 06:39:29 -07:00
Hajime Hoshi
243c224003 internal/restorable: bug fix: wrong panic on mixing DrawTriangles and WritePixels
When DrawTriangles is called and then WritePixels is called on a
sub-image, a panic happened. However, this panic actually happens
only when the graphics driver requires restoring (e.g. OpenGL ES
on Android). The situation was very limited, but this was a real
problem on Android.

This panic was introduced to prevent a rendering bug by a inmature
graphics drivers, but we should no longer need this. This change
just removes the panic.

Updates 
2022-09-13 06:18:55 -07:00
Hajime Hoshi
40362aa62d internal/restorable: bug fix: readPixelsFromGPU might be called for a non-stale image
Actually readPixelsFromGPUIfNeeded can invoke this.

Closes 
2022-09-13 15:34:43 +09:00
Hajime Hoshi
4824cbc755 internal/graphicscommand: bug fix: IsInvalidated was not concurrent-safe
This function was not called actually, so this is not a real problem.
However, this could be a potential problem for a future GLES driver ().

Updates 
Closes 
2022-09-13 12:23:19 +09:00
Hajime Hoshi
6ea455f4e1 internal/graphicsdriver/opengl/gles: remove cString 2022-09-13 00:17:33 +09:00
Hajime Hoshi
e46bfd8d30 internal/graphicsdriver: rename files
Updates 
2022-09-12 23:03:54 +09:00
Hajime Hoshi
be1f6fb68a update Oto to v2.4.0-alpha.3 2022-09-12 21:58:15 +09:00
Hajime Hoshi
7d6ee39c15 internal/gamepad: bug fix: a wireless Xbox controller didn't work correctly on macOS
The button and hat values must be adjusted by their minimum values.
See also GLFW's implementation.

Closes 
2022-09-12 01:55:05 +09:00
Hajime Hoshi
89598df520 internal/gamepad: refactoring
Updates 
2022-09-11 22:44:06 +09:00
Hajime Hoshi
4629306f4b internal/gamepad: bug fix: wrong SDL ID on iOS
The gamepad database already worked well with this fix.

Closes 
2022-09-11 22:29:38 +09:00
Hajime Hoshi
eec944f5ed update Oto (implement suspend/resume of the null context on Windows)
Updates 
2022-09-10 23:46:50 +09:00
Hajime Hoshi
5bf0a5ec1c update Oto (bug fix: crash when no audio device is found on Windows)
Closes 
2022-09-10 23:27:26 +09:00
Hajime Hoshi
e730ab995a update Oto (bug fix: crash on resuming with WinMM)
Closes 
2022-09-10 22:24:06 +09:00
Hajime Hoshi
7d31a121f1 update Oto 2022-09-10 19:07:07 +09:00
Hajime Hoshi
5b8afed894 update Oto (detect swtching devices automatically on Windows)
Closes 
2022-09-10 18:44:35 +09:00
Hajime Hoshi
3f5ddadca8 update Oto (release COM objects appropriately)
Updates 
2022-09-10 17:27:40 +09:00
Hajime Hoshi
89e5e2921b update Oto
Updates 
2022-09-10 16:35:20 +09:00
Hajime Hoshi
c4b609f538 update Oto (fix crashes on Windows when plugging out a headset)
Closes 
2022-09-10 16:33:07 +09:00
Hajime Hoshi
14a3a0f6bc internal/graphicsdriver/opengl/gl: better error message 2022-09-10 14:21:59 +09:00
Hajime Hoshi
fe11facbb8 internal/graphicsdriver/opengl/gl: better error message 2022-09-10 14:14:42 +09:00
Hajime Hoshi
d8eaf0a394 internal/graphicsdriver/opengl/gl: reland: integrate files for ebitengine/purego
Closes 
2022-09-10 13:37:20 +09:00
Hajime Hoshi
aa055ea800 .github/workflows: run static analysis on Windows
This condition was accidentally introduced at e505098e55.

Updates 
2022-09-10 13:23:02 +09:00