Commit Graph

5827 Commits

Author SHA1 Message Date
Hajime Hoshi
4bc0bb607b audio: Lazy initialization at reader players 2021-02-28 23:41:30 +09:00
Hajime Hoshi
dbdfce5fed audio: Add readerDriverPlayer.UnwrittenBufferSize to get the exact position 2021-02-28 01:42:48 +09:00
Hajime Hoshi
cb3fc3c51c Revert "shareable: Limit the texture size to 8192"
This reverts commit c92ccfff79.

Reason: This should no longer be needed after #1517 is fixed.
2021-02-27 13:55:13 +09:00
Hajime Hoshi
77b198211c internal/graphicsdriver/metal: Add a comment 2021-02-27 04:04:25 +09:00
Hajime Hoshi
53352cf2b3 internal/graphicsdriver/metal: Use the smallest temporary texture
Updates #1517
2021-02-27 03:45:19 +09:00
Hajime Hoshi
673627c4d4 internal/graphicsdriver/metal: Optimization 2021-02-27 02:30:20 +09:00
Hajime Hoshi
6b3c51921c internal/driver: Remove Image.Sync
Syncing is no longer needed for Metal, and additionally, OpenGL's sync
implementation was mock.

Updates #1508
2021-02-26 23:16:28 +09:00
Hajime Hoshi
9341d21614
internal/shareable: Call DrawTriangles instead of ReplacePixels at makeShared (#1513)
When context losts never happen, reading pixels and call replace-pixels command are not needed.

Closes #1508
2021-02-26 12:56:22 +09:00
Hajime Hoshi
d913e66cd9 Revert "uidriver/glfw: Bug fix: Do not iconify the fullscreen window automatically"
This reverts commit 61bf10e73e.

Reason: This prevents the app from iconifying when toggling apps.

Updates #1405
Closes #1504
2021-02-23 20:13:21 +09:00
Hajime Hoshi
18d526c2d3 internal/uidriver/glfw: Bug fix: Crash when returning from fullscreen
ForceUpdate was called unexpectedly inside Update. This caused the
race condition.

Closes #1505
2021-02-23 16:52:12 +09:00
Hajime Hoshi
b8cdcdb847 audio: Bug fix: NewInfiniteLoop(WithIntro) should work with incomplete values
Closes #1503
2021-02-22 02:15:45 +09:00
Hajime Hoshi
a13930650d examples/audiopanning: Bug fix: Fix several issues
* The stream was not looped.
 * The shown position was wrong.

Closes #1502
2021-02-22 02:00:52 +09:00
Hajime Hoshi
29099cf660 audio: Bug fix: Continue to play the audio after seeking on go2cpp 2021-02-21 23:54:43 +09:00
Hajime Hoshi
311d53ce2e examples/audio: Enable to touch 2021-02-21 19:20:24 +09:00
Hajime Hoshi
027463ff88 audio: Bug fix: timeStream was not used for a reader player 2021-02-21 18:48:58 +09:00
Hajime Hoshi
6f462e824f examples/audio: Use the same audio file for Ogg and MP3
This also changes the sample rate to 32000 for some special
environments.
2021-02-21 17:57:06 +09:00
Hajime Hoshi
e873b386a0 Update Go to 1.16.0 for the tests 2021-02-17 14:57:14 +09:00
Hajime Hoshi
969964cb46 internal/graphicsdriver/opengl/gl: Bug fix: Remove unsafe reflect usage
Closes #1495
2021-02-14 21:27:30 +09:00
Hajime Hoshi
9179c5b200 Add go-get for Go 1.16 2021-02-14 18:43:52 +09:00
Hajime Hoshi
2cdc7e7cfb Add Go 1.16.0-rc1 test 2021-02-14 18:41:17 +09:00
Hajime Hoshi
43ab55d88a Revert "cmd/ebitenmobile: Use the better way to go-get dependencies"
This reverts commit ad2d356262.

Reason: Installation failed on Windows.

Closes #1493
2021-02-14 18:26:46 +09:00
Hajime Hoshi
ad2d356262 cmd/ebitenmobile: Use the better way to go-get dependencies
Updates #1487
2021-02-12 02:45:05 +09:00
Hajime Hoshi
1517f80430 internal/uidriver/glfw: Refactoring 2021-02-11 04:02:18 +09:00
Hajime Hoshi
ec912e5cad internal/uidriver/glfw: Remove the dirty hack creating a temporary UI instance
Updates #1122
2021-02-11 03:45:39 +09:00
Hajime Hoshi
fea802b39d internal/uidriver: Replace mutex usages with atomic
Updates #1073
2021-02-11 02:38:15 +09:00
Hajime Hoshi
ba674a686c cmd/ebitenmobile: Bug fix: Record go.sum correctly to build gomobile/gobind
Closes #1487
2021-02-10 02:18:06 +09:00
Hajime Hoshi
ec843ce92c internal/web: Consider the case when navigator exists but userAgent doesn't
This can happen on go2cpp.
2021-02-09 23:59:39 +09:00
Hajime Hoshi
0b30ed5959 Revert "ebiten: Skip calling Draw when the update count is 0"
This reverts commit 4d545b9ad8.

Reason: Restricting calls of Draw was counter-intuitive for users.
See the discussion at #1486
2021-02-09 23:32:30 +09:00
Hajime Hoshi
9806bb2c5e cmd/ebitenmobile: Update gomobile version
This change fixes these issues:

 * Fail to run on Go 1.16 and after
 * Fail to run on Android NDK r22 and after

Closes #1484
2021-02-09 02:16:05 +09:00
Hajime Hoshi
9400efa9a5 internal/uidriver/glfw: Update the screen on resizing
Closes #1204
2021-02-07 23:03:56 +09:00
Hajime Hoshi
5f81065d78 internal/shader: Make function duplications error
Closes #1430
2021-02-07 22:24:23 +09:00
Hajime Hoshi
d999b4dc8e internal/uidriver/glfw: Bug fix: Enable to specify ebiten.Image to SetWindowIcon
Closes #1468
2021-02-07 21:18:30 +09:00
Hajime Hoshi
acb8bcae38 cmd/ebitenmobile, internal/devicescale: Experimental fix of the display density
Closes #1481
2021-02-07 14:07:06 +09:00
Hajime Hoshi
1955463296 Update Go versions for GitHub workflow 2021-02-05 11:02:54 +09:00
Hajime Hoshi
b23dfff2ff ebiten: Refactoring 2021-01-31 22:45:47 +09:00
Hajime Hoshi
5a62587df5 ebiten: Bug fix: The vertex backend was not flushed when the screen is shrunk
The last parameter of QuadVertices represents whether we can flush
the backend vertices (on Wasm). The problem was that this was
unexpectedly false even though the image is the screen, when the
screen rendering is done with FilterLinear instead of FilterScreen.

Closes #1479
2021-01-31 22:37:18 +09:00
Hajime Hoshi
773c03cb7a Update oggvorbis to v1.0.3 2021-01-31 16:06:01 +09:00
Hajime Hoshi
b859db02e5 inpututil: Remove map/slice allocations in update 2021-01-31 04:22:50 +09:00
Hajime Hoshi
da71840106 Add Kamil Chruściński to AUTHORS 2021-01-31 04:05:19 +09:00
Kamil Chruściński
dcb673004a
created hyperlink to LICENSE file in README.md (#1476) 2021-01-31 04:03:53 +09:00
Hajime Hoshi
5a061d015f Update github.com/jfreymuth/oggvorbis to v1.0.2 2021-01-31 03:19:52 +09:00
Hajime Hoshi
44bb004cb7 internal/restorable: Avoid allocating new slices for drawTrianglesHistory 2021-01-30 19:13:03 +09:00
Hajime Hoshi
f73fdc9af5 Revert "Add 1.16rc1 to the GitHub workflow tests"
This reverts commit 2110a976aa.

Reason: This didn't work.x
2021-01-29 02:36:41 +09:00
Hajime Hoshi
2110a976aa Add 1.16rc1 to the GitHub workflow tests 2021-01-29 02:35:09 +09:00
Hajime Hoshi
87c8625692 Remove internal/colormcache 2021-01-28 03:28:29 +09:00
Hajime Hoshi
256adfff9d internal/affine: Add tests
Updates #1474
2021-01-28 02:24:24 +09:00
Hajime Hoshi
a6dd6196b4 internal/affine: Cache scaling ColorM for heuristic optimization
Closes #1474
2021-01-28 02:23:22 +09:00
Hajime Hoshi
14abc28d3a internal/color: Remove Add 2021-01-27 02:37:56 +09:00
Hajime Hoshi
599b3501fd internal/uidriver/js: Bug fix: GamepadName and GamepadSDLID could return wrong values
Updates #1472
2021-01-26 10:35:40 +09:00
Hajime Hoshi
b9a0906537 internal/uidriver/js: Bug fix: nil map 2021-01-26 10:26:52 +09:00