Commit Graph

8336 Commits

Author SHA1 Message Date
Hajime Hoshi
c3709f57b7 update purego 2023-02-13 14:04:52 +09:00
Hajime Hoshi
05f86b3974 update purego to v0.2.0-alpha.1 2023-02-13 03:18:08 +09:00
TotallyGamerJet
93537650c0
internal/goglfw: use platform agnostic functions for context_windows.go (#2570)
context_windows.go is used for all the platforms. However, it used syscall.Syscall which behaves differently on macOS
and Windows as well as windows.BytePtrToString which isn't available on Linux or macOS.

This commit replaces syscall.Syscall with purego.SyscallN and windows.BytePtrToString with a copied version called
bytePtrToString.

Updates #2546
2023-02-10 02:35:17 +09:00
TotallyGamerJet
b359985e97
internal/goglfw: separate windows specific struct from common structs (#2567)
Many of the structs found in internal.h (internal_windows.go) contain defines such as GLFW_WIN32_WINDOW_STATE
which gets replaced with a struct defined in win32platform_windows.go (win32_platform.h).

Originally, these structs where directly placed inside of internal_windows.go. However, to make it easier to add macOS
and Linux these cannot be in this file.

This commit separates the windows specific structs into the respective windows file and updates the field to be named
state.

Updates #2546
2023-02-08 03:05:46 +09:00
Hajime Hoshi
fb51e67910 .github/workflows: use cleanenv to reduce environment variables
Closes #2412
2023-02-08 01:11:06 +09:00
Hajime Hoshi
8864ce1291 all: update comments 2023-02-07 12:05:43 +09:00
Artem Sedykh
da54f19df5
add blend modes example (#2563) 2023-02-07 11:59:49 +09:00
quasilyte
ce36527d16
examples/camera: fix window title (#2564) 2023-02-06 17:31:23 +09:00
Artem Sedykh
1277909998
ebiten: bug fix: wrong BlendDestinationOut behaviour (#2561)
Closes #2560
2023-02-06 03:28:58 +09:00
Hajime Hoshi
085a4f6914 update README 2023-02-05 14:06:58 +09:00
Hajime Hoshi
f4371991fe internal/gamepad: refactoring 2023-02-02 22:33:01 +09:00
Hajime Hoshi
628418d88e internal/gamepaddb: update the database 2023-02-02 22:00:34 +09:00
Hajime Hoshi
fa751853d7 .github/workflows: use Go 1.20 2023-02-02 10:35:15 +09:00
Hajime Hoshi
157f535b88 update Oto to v2.4.0-alpha.12 2023-01-30 15:42:07 +09:00
Pierre Curto
4de807cc44
all: fix typos (#2558)
Signed-off-by: Pierre Curto <pierre.curto@gmail.com>
2023-01-28 19:06:38 +09:00
Pierre Curto
04170d628f
text: fix typos and add fields to struct initializers (#2556)
Signed-off-by: Pierre Curto <pierre.curto@gmail.com>
2023-01-28 00:14:37 +09:00
Hajime Hoshi
7502da50ba update Oto (bug fix for a WinMM crash when no audio is connected)
Closes #2318
2023-01-27 21:42:11 +09:00
Hajime Hoshi
ada2c8b67e update Oto 2023-01-27 20:24:49 +09:00
Hajime Hoshi
328532c9fa update Oto (fix the issue when disabling all the audio devices)
Closes #2555
2023-01-27 18:44:07 +09:00
Hajime Hoshi
2790add85d update Oto (support PS5 controllers by WASAPI)
Closes #2536
2023-01-27 16:07:20 +09:00
Hajime Hoshi
38a6583438 examples/audio: change the sample rate from 32000 -> 48000 2023-01-27 14:58:17 +09:00
Hajime Hoshi
0c76a0cbd7 examples/dropfile: bug fix: handle errors correctly 2023-01-25 15:25:06 +09:00
Hajime Hoshi
f009dd8dd2 ebiten: implement DroppedFiles to replace AppendDroppedFiles
Closes #2552
2023-01-25 14:27:11 +09:00
Hajime Hoshi
aa52402a90 internal/graphicsdriver/metal: fix a comment 2023-01-24 02:22:35 +09:00
Hajime Hoshi
16e49e0499 internal/ui: fix a potential out-of-range error 2023-01-24 00:32:08 +09:00
Hajime Hoshi
7f39b9c5b6 internal/graphicsdriver/metal: use supportsFeatureSet: as a fallback
This change is a fix for a regression that happened on macOS High Sierra.

Closes #2553
2023-01-23 23:44:56 +09:00
Hajime Hoshi
84e32c2e4e internal/ui: more precise detection of directory on browsers
Updates #1868
2023-01-22 18:28:34 +09:00
Hajime Hoshi
e03cb0d4df examples/dropfile: bug fix: go vet failed 2023-01-22 17:31:24 +09:00
Hajime Hoshi
8c25fac860 ebiten: add AppendDroppedFiles
Closes #1868
2023-01-22 17:22:25 +09:00
Hajime Hoshi
40aa35750c ebiten: bug fix: updating the input state must be protected by a mutex 2023-01-22 01:49:43 +09:00
Hajime Hoshi
b79f0394cc internal/ui: refactoring: allow slices in InputState 2023-01-22 01:28:57 +09:00
Hajime Hoshi
d53803615a internal/ui: merge a window-closing state into an input state 2023-01-21 23:42:48 +09:00
Hajime Hoshi
d37aadd064 .github/workflows: fix govetblock.txt
Updates #2546
2023-01-21 22:17:36 +09:00
Hajime Hoshi
35e25a3636 rename internal/glfwwin -> internal/goglfw
Updates #2546
2023-01-21 22:09:21 +09:00
Hajime Hoshi
aebb7e9aef .github/workflows: update wasmbrowsertest 2023-01-21 18:47:30 +09:00
Hajime Hoshi
b065f53a67 .github/workflows: update Go 1.20 to RC3 2023-01-20 16:16:41 +09:00
Hajime Hoshi
06bc569b73 internal/shader: bug fix: wrongly typed constants were unexpectedly used
Closes #2549
2023-01-20 02:26:39 +09:00
Hajime Hoshi
f054a7634a ebiten: deprecate (*Image).Size
Closes #2351
2023-01-20 01:26:37 +09:00
Hajime Hoshi
8d61d43371 .github/ISSUE_TEMPLATE: remove 02-security.yml
GitHub now provides a default template.

https://docs.github.com/en/code-security/security-advisories/repository-security-advisories/configuring-private-vulnerability-reporting-for-a-repository
2023-01-18 03:37:00 +09:00
Hajime Hoshi
f17be388b2 update Oto to v2.4.0-alpha.11 2023-01-15 02:08:47 +09:00
Hajime Hoshi
96a44eceaf internal/glfwwin: remove unused functions 2023-01-14 17:04:46 +09:00
Hajime Hoshi
72f026e254 internal/graphicsdriver/opengl/gl: bug fix: searching GL libraries failed on some machines
On a Debian machine, LD_LIBRARY_PATH might not be set and libGL.so might
not exist (libGL.so.1 exists instead). In this case, searching for a GL
library fails

This change fixes the issue by not using LD_LIBRARY_PATH and also including
`libGL.so.*` files as candidates for dlopen.

Closes #2539
2023-01-13 15:08:06 +09:00
Pierre Curto
abd293fae6
text, vector: fix typos and redundant casts (#2537) 2023-01-13 03:28:41 +09:00
Hajime Hoshi
a06c15fb66 update Oto (bug fix: possible memory leak on Windows) 2023-01-12 13:20:09 +09:00
Hajime Hoshi
8017f2b3a8 update Oto (bug fix: crash when a device is switched during suspension on Windows) 2023-01-12 04:41:31 +09:00
Hajime Hoshi
4cc9d4d0db update Oto (avoid crashing w/ a PS5 controller)
A game might crash when a PS5 controller is connected due to switching
audio device. The latest Oto fix at least avoids this crash.

This crash is confirmed only with a Steam game so far.

Updates #2535
2023-01-12 03:58:27 +09:00
Hajime Hoshi
1da6b06041 .github/workflows/vuln: update Go versions 2023-01-11 21:37:19 +09:00
Hajime Hoshi
ff4e382902 update Oto (more precise buffer-size calculations) 2023-01-10 01:00:11 +09:00
Hajime Hoshi
d3553bf698 update Oto (adjust the buffer size to 50[ms] for Windows)
Updates #2534
2023-01-09 22:15:08 +09:00
Hajime Hoshi
80bbdd3ca3 update Oto (fix for buffer size calculation on macOS/iOS) 2023-01-09 21:54:45 +09:00