Commit Graph

4763 Commits

Author SHA1 Message Date
Hajime Hoshi
08ac91fb50 monogame: Refactoring 2020-04-05 20:00:53 +09:00
Hajime Hoshi
3a5f0a7a95 graphicsdriver/monogame: Implement some functions
Updates #1078
2020-04-05 17:36:26 +09:00
Hajime Hoshi
fa90e48eec graphicscommand: Show the number of indices when dumping the command 2020-04-05 14:38:54 +09:00
Hajime Hoshi
57a5783ca0 graphicsdriver/monogame: Implement ReplacePixels
Updates #1078
2020-04-05 04:44:48 +09:00
Hajime Hoshi
8809076682 graphicsdriver/monogame: Create a RenderTarget2D for an image
Updates #1078
2020-04-04 22:59:55 +09:00
Hajime Hoshi
6236ba1f00 Add internal/monogame
Updates #1078
2020-04-04 22:59:13 +09:00
Hajime Hoshi
eabe4152a7 graphicsdriver/opengl: Rename Driver -> Graphics 2020-04-04 17:23:38 +09:00
Hajime Hoshi
01d1afa25c graphicsdriver/metal: Rename Driver -> Graphics 2020-04-04 17:12:24 +09:00
Hajime Hoshi
6cbf37e855 Add graphicsdriver/monogame 2020-04-04 17:03:45 +09:00
Hajime Hoshi
8777140e91 driver: Simplify UIContext.Update 2020-04-03 00:18:27 +09:00
Hajime Hoshi
218281ce6f ebiten: Fix the copyright year 2020-04-02 12:42:54 +09:00
Hajime Hoshi
9b0d95cfcf clock: Integrate now.go and now_js.go
The monotonic timer already uses performance.now, then we don't
have to have the original code.
2020-04-02 01:52:00 +09:00
Hajime Hoshi
4179e6c122 Introduce 'monogame' build tag experimentally
Updates #1078
2020-04-01 23:42:17 +09:00
Hajime Hoshi
5ad9868d85 driver: Refactoring: Reorder functions 2020-04-01 21:28:00 +09:00
Hajime Hoshi
19333c51e4 ebiten: Use internal/testing for tests 2020-04-01 18:35:12 +09:00
Hajime Hoshi
ab94cebd02 buffered: Use RunGame for tests 2020-04-01 18:32:14 +09:00
Hajime Hoshi
16280e9a5a testing: Use RunGame 2020-04-01 18:21:35 +09:00
Hajime Hoshi
47d5c3b5e1 Add testing package 2020-04-01 18:10:48 +09:00
Hajime Hoshi
9302160486 examples/flappy: Use RunGame
Updates #1111
2020-04-01 15:59:49 +09:00
Hajime Hoshi
01a1334639 examples/blocks: Use RunGame
Updates #1111
2020-04-01 15:57:49 +09:00
Hajime Hoshi
a70d6a314e examples/2048: Use RunGame
Updates #1111
2020-04-01 15:51:54 +09:00
Hajime Hoshi
41213108ba docs: Improve comments about Game 2020-04-01 14:44:56 +09:00
Hajime Hoshi
6429c7aee0 docs: Fix wrong comments about RunGame 2020-04-01 14:40:43 +09:00
Hajime Hoshi
a0b9df7f4e docs: Improve the comments about Game 2020-04-01 14:35:21 +09:00
Hajime Hoshi
e89605fc4a docs: Draw function's signature was wrong (again) 2020-04-01 04:25:32 +09:00
Hajime Hoshi
de786035c7 docs: Draw function's signature was wrong 2020-04-01 04:23:55 +09:00
Hajime Hoshi
5300b0f498 docs: Draw function definition was ommitted on godoc.org 2020-04-01 04:22:38 +09:00
Hajime Hoshi
3d03599882 docs: Fix a wrong function name 2020-04-01 04:18:59 +09:00
Hajime Hoshi
a4f6909710 ui: Add comments 2020-04-01 03:38:32 +09:00
Hajime Hoshi
4976460af3 ui: Refactoring 2020-04-01 03:02:32 +09:00
Hajime Hoshi
a718ddbf7e driver: Add UIDriver.Draw
This is a preparation for XNA.

Updates #1078
2020-04-01 02:55:50 +09:00
Hajime Hoshi
ef5e917feb shareable: Remove old comments
This was introduced at cbf36734f8,
but the situation was changed at 9d867850dc
2020-04-01 00:58:33 +09:00
Hajime Hoshi
7ac6b0bfa3 Update dependencies 2020-03-31 03:32:38 +09:00
Hajime Hoshi
161d8aae8f ui: Forbid RestoreWindow when the window is not maximized nor minimized
Fixes #1124
2020-03-31 02:48:22 +09:00
Hajime Hoshi
b470dace1a examples/windowsize: Bug fix: Nothing was rendered with -legacy mode 2020-03-31 02:22:21 +09:00
Hajime Hoshi
35eb9e77a0 ui: Improve comments about Game interface
This change also fixes comments in uiConttext, which seems pretty
old.
2020-03-31 02:04:27 +09:00
Hajime Hoshi
f01f5045ba examples/mascot: Use RunGame
Updates #1111
2020-03-31 01:06:47 +09:00
Hajime Hoshi
9fe4191a6a mobile: Game object without Draw didn't draw anything
Fixes #1123
2020-03-30 03:35:07 +09:00
Hajime Hoshi
8fae2e1c18 Update version to v1.12.0-alpha 2020-03-29 23:49:07 +09:00
Hajime Hoshi
4fe8d5c8c2 cmd/ebitenmobile: Update gomobile version
Fixes #1120
2020-03-29 22:00:29 +09:00
Hajime Hoshi
9a14d2fb14 thread: Fix comments
Fixes #1121
2020-03-29 16:27:12 +09:00
Hajime Hoshi
41d07706ae Revert "thread: Close channels"
This reverts commit 00e78c1eae.

Reason: (*Thread).Loop can be called multiple times on iOS.

Fixes #1121
2020-03-29 16:25:42 +09:00
Hajime Hoshi
a9c74e48e1 cmd/ebitenmobile: Update gomobile version 2020-03-29 13:44:41 +09:00
Hajime Hoshi
569f684d9b examples/windowsize: Improve messages 2020-03-29 02:36:14 +09:00
Hajime Hoshi
b7d555e724 examples/blocks: Bug fix: ESC key caused crashing 2020-03-29 02:35:58 +09:00
Hajime Hoshi
231edfbd3f example/contextlost: Bug fix: Compilie error on Go 1.14, Should use WebGL2 2020-03-29 02:03:14 +09:00
Hajime Hoshi
b09fe7157b uidriver/glfw: Update comments 2020-03-29 01:33:23 +09:00
Hajime Hoshi
e3def4ae50 uidriver/glfw: Update comments 2020-03-29 01:12:53 +09:00
Hajime Hoshi
9d5c35f029 uidriver/glfw: Bug fix: Initilizing the window position and the size in this order on Windows
It looks like the order is different on Windows from Linux. We
are not sure why.

Updates #1118
2020-03-29 00:50:19 +09:00
Hajime Hoshi
b7ab3d2df4 uidriver/glfw: Avoid using the window position before initializing
Especially in the initial phase before calling Run/RunGame, the
window position is not reliable and then getting the device scale
factor does not make sense based on the window position. Avoid
using the window position, and instead use the glfw.Monitor in
this situation.
2020-03-29 00:09:08 +09:00