Commit Graph

7136 Commits

Author SHA1 Message Date
Hajime Hoshi
5a4c46fc52 update GLFW to 3.3.7 2022-05-20 22:26:04 +09:00
Hajime Hoshi
f67b4cc1d6 internal/glfw: use a pure Go implementation of GLFW
This change removes internal/glfw/glfw, that is a DLL loader, and
replaces the usages with internal/glfwwin, that is a pure Go
implementation of GLFW for Windows.

The build tag `ebitenexternaldll` is also removed.

Closes #1764
2022-05-20 22:10:00 +09:00
Hajime Hoshi
edd617f80e internal: add a new package glfwwin
internal/glfwwin is a pure Go implementation of GLFW for Windows.

Updates #1764
2022-05-20 21:36:13 +09:00
Hajime Hoshi
58c871df38 .github/workflow: remove warnings 2022-05-20 20:57:07 +09:00
Hajime Hoshi
8941aea249 .github/workflow add tests for GOARCH=386
Closes #2097
2022-05-20 20:56:01 +09:00
Hajime Hoshi
eec5ea00ec internal/glfw: refactoring: use pointers or functions for callbacks 2022-05-20 17:49:46 +09:00
Hajime Hoshi
006b4324dc cmd/ebitenmobile: update Go mobile to enable the latest Android SDK 24
Closes #2085
2022-05-19 09:03:23 +09:00
Hajime Hoshi
8d2b08dd14 internal/glfw: refactoring: make callback handlers consistent 2022-05-19 01:49:21 +09:00
Hajime Hoshi
7189c7f649 internal/glfw: refactoring: remove unused APIs
Ebiten doesn't rely on GLFW for gamepads.
2022-05-19 01:04:23 +09:00
Hajime Hoshi
fef79f4d3e internal/graphicsdriver/metal: update the minimum version of macOS
Updates #2095
2022-05-18 00:09:04 +09:00
Hajime Hoshi
3d00bb1fa2 internal/gamepad, internal/ui: type-cast returning values from Win32APIs just in case 2022-05-11 00:48:44 +09:00
Hajime Hoshi
812607cdfc internal/processtest/testdata: add a test case for #2089
Updates #2089
2022-05-08 23:45:21 +09:00
Hajime Hoshi
faf1e7350d internal/atlas: bug fix: wrong logic to create a new mask with edges
* Fixed wrong operator orders
 * Cleared an allocated region explicitlly

Closes #2089
2022-05-08 23:06:10 +09:00
Hajime Hoshi
9cfa84ddaa inpututil: fix the comments
The unit of time is ticks, not frames.

Closes #2087
2022-05-06 20:42:41 +09:00
Hajime Hoshi
7409f01b17 internal/graphicsdriver/metal/mtl: bug fix: specify the language version explicitly
Updates #2086
2022-05-05 23:50:48 +09:00
Hajime Hoshi
331ad93adf cmd/ebitenmobile: fail earlier when a wrong subcommand is specified
Updates #2085
2022-05-02 23:03:28 +09:00
Hajime Hoshi
2c4ac5625b examples/flappy: add GoMain when Windows+Cgo
This is a hack to compile the example with -buildmode=c-archive (.a).

Updates #2084
2022-05-02 22:46:26 +09:00
Hajime Hoshi
cf914bfe00 .github/workflows: update actions/setup-go to v3 2022-05-01 17:55:37 +09:00
Hajime Hoshi
7bf9f92eb9 update Oto to v2.2.0-alpha.2 2022-05-01 13:12:39 +09:00
Hajime Hoshi
4a90841a59 ebiten: update a comment 2022-04-28 11:14:36 +09:00
Hajime Hoshi
b1bcbbeeea ebiten: add comments at DrawTriangles 2022-04-26 23:23:31 +09:00
Hajime Hoshi
a0e1d08123 internal/graphicsdriver/directx: update comments
Updates #2081
2022-04-26 11:20:48 +09:00
Hajime Hoshi
7321e86a6b internal/graphicsdriver/directx: bug fix: the screen image can be nil when resizing the window
Closes #2081
2022-04-26 11:19:48 +09:00
Hajime Hoshi
38a2aa11fd internal/ui: bug fix: deadlock at Layout with Ebiten's image functions called
Closes #2079
2022-04-26 01:12:57 +09:00
Hajime Hoshi
8556334fce update Oto 2022-04-24 13:05:38 +09:00
Hajime Hoshi
fda2e0f7f6 add Vivek Murali to AUTHORS 2022-04-24 12:15:03 +09:00
Vivek Murali
084ba6bbd1
vector: fix spelling error in vector/path.go (#2078) 2022-04-24 12:14:18 +09:00
Hajime Hoshi
dc811f9329 internal/gamepaddb: bug fix: crash at addAndroidDefaultMappings
Closes #2076
2022-04-19 23:36:02 +09:00
Hajime Hoshi
945f4af2ae update Oto to v2.2.0-alpha.1 2022-04-19 10:43:02 +09:00
Hajime Hoshi
928d82c685 internal/atlas: potential bug fix: restore images before other image manipulations
From the reported stack trace, there could be a potential issue in
atlas.BeginFrame: images were manipulated before the images are restored.
Restoring images assumes that all images are not stale, but manipulating
images like putOnAtlas might cause other images stale in ReplacePixels.

Though we failed to reproduce the case, this fix should make sense.

Updates #2075
2022-04-18 02:19:46 +09:00
Hajime Hoshi
f128f2e146 ebiten: fix a doc 2022-04-15 15:05:29 +09:00
Hajime Hoshi
48ee30cf34 ebiten: fix a wrong comment at WindowResizingModeOnlyFullscreenEnabled 2022-04-15 14:27:21 +09:00
Hajime Hoshi
be5bf02fc3 ebiten: update comments about VibrateGamepad 2022-04-15 13:55:54 +09:00
Hajime Hoshi
2fc691f661 internal/clock: rename CurrentFPS/TPS -> ActualFPS/TPS 2022-04-14 00:57:47 +09:00
Hajime Hoshi
f25dda1318 internal/clock: force to sync the timer when TPS is updated 2022-04-14 00:56:37 +09:00
Hajime Hoshi
ad9abe19a6 cmd/ebitenmobile: adjust gomobile version 2022-04-13 23:49:36 +09:00
Hajime Hoshi
06df5bc29d ebiten: update the comments of the Game interface 2022-04-13 22:53:07 +09:00
Hajime Hoshi
fa9906d839 add Julian Merkle to AUTHORS 2022-04-13 18:43:07 +09:00
Julian Merkle
d68f770561
examples/stars: refactor (#2070)
Minor adjustments because of:

* Function abs(int) is unused.
* Color fields are assigned without explicit names
* Color variable shadows the color package name
2022-04-13 18:42:04 +09:00
Hajime Hoshi
8e8831a4d4 update README 2022-04-12 22:22:57 +09:00
Hajime Hoshi
a67899fcc0 update Oto 2022-04-12 22:09:57 +09:00
Hajime Hoshi
3f0b3f9686 audio/internal/cbackend: refactoring: remove unnecessary mutex locks 2022-04-12 21:04:10 +09:00
Hajime Hoshi
8f524b5c23 examples/vibrate: refactoring 2022-04-12 00:11:11 +09:00
Hajime Hoshi
55447679ee examples/vibrate: bug fix: touches didn't work correctly 2022-04-12 00:05:55 +09:00
Hajime Hoshi
88213f5dd8 update Oto to v2.2.0-alpha 2022-04-11 11:32:54 +09:00
Hajime Hoshi
d189a120d2 update Oto 2022-04-11 10:56:42 +09:00
Hajime Hoshi
6b77e2edff update go-mp3 2022-04-11 10:46:57 +09:00
Hajime Hoshi
699b58c02b examples/flappy: bug fix: touches didn't work
Closes #2067
2022-04-11 10:44:41 +09:00
Hajime Hoshi
b53f93c614 examples/windowclosing: update the message 2022-04-11 01:10:48 +09:00
Hajime Hoshi
e4d6381452 examples/fullscreen: forbid quiting on browsers 2022-04-10 20:04:52 +09:00