Commit Graph

121 Commits

Author SHA1 Message Date
Hajime Hoshi
6f6cceb42c cmd/ebitenmobile: Do not call addView in onLayout
In onLayout, addViewInLayout is safer.

This change fixes the potential issue by moving addView to
constructors.
2019-10-19 02:15:31 +09:00
Hajime Hoshi
bf07ead6ae mobile/ebitenmobileview: Bug fix: Use Math.floor to shrink the size a little bit
Fixes #956
2019-10-17 12:21:06 +09:00
Hajime Hoshi
83f93df78b Add 'ebitengl' build tag to force to use GL
Fixes #958
2019-10-13 16:58:33 +09:00
Hajime Hoshi
1f56266027 cmd/ebitenmobile: Bug fix: Use even numbers for the position/size
Fixes #956
2019-10-11 10:53:42 +09:00
Hajime Hoshi
3c976eae02 cmd/ebitenmobile: Use Metal on iOS
The emulators still use OpenGL.

Fixes #737
2019-10-09 02:13:47 +09:00
Hajime Hoshi
b4969cccd7 cmd/ebitenmobile: Bug fix: Give environment variables to search the package name (gobind) 2019-09-23 19:12:20 +09:00
Hajime Hoshi
75c9f34374 cmd/ebitenmobile: Bug fix: Give environment variables to search the package name 2019-09-23 18:17:17 +09:00
Hajime Hoshi
ea6a25f594 cmd/ebitenmobile: Add linker options
This change suppresses the linker error that the .so file is not
found.

Fixes #932
2019-09-22 20:58:04 +09:00
Hajime Hoshi
1acf110078 cmd/ebitenmobile: Rename onPause/onResume to suspendGame/resumeGame
Fixes #894
2019-09-14 15:36:40 +09:00
Hajime Hoshi
c648b40e20 mobile/ebitenmobile: Implement setScreenSize
This change also fixes the bug that Android froze when the view
size is changed.

Fixes #934
2019-09-14 14:49:38 +09:00
Hajime Hoshi
7547207e2d cmd/ebitenmobile: Ensure that rendering never happens on background 2019-09-13 22:49:07 +09:00
Hajime Hoshi
31e0721973 cmd/ebitenmobile: Ensure that frame-update never happens on background 2019-09-13 11:47:45 +09:00
Hajime Hoshi
af3b7117c3 cmd/ebitenmobile: Refactoring 2019-09-13 03:26:13 +09:00
Hajime Hoshi
16337bb6bf cmd/ebitenmobile: Add suspendGame/resumeGame to the ViewController
Updates #894
2019-09-13 03:19:01 +09:00
Hajime Hoshi
ef91fb739f cmd/ebitenmobile: Bug fix: Resume the view correctly 2019-09-07 02:33:38 +09:00
Hajime Hoshi
a42b5274df cmd/ebitenmobile: Use GOROOT/bin/go instead of go
Fixes #927
2019-08-24 01:06:16 +09:00
Hajime Hoshi
2c770f3644 cmd/ebitenmobile: Define an error handler for iOS
Updates #919
2019-08-18 20:55:36 +09:00
Hajime Hoshi
0b1aec4d27 cmb/ebitenmobile: Define an error handler for Android
Fixes #919
2019-08-18 20:22:42 +09:00
Hajime Hoshi
2ff0ccf4cc cmd/ebitenmobile: Run gomobile init 2019-08-18 17:11:53 +09:00
Hajime Hoshi
e735e26450 cmd/ebitenmobile: Add Android
Updates #863
2019-08-18 15:53:34 +09:00
Hajime Hoshi
9ba113861c Add ebitenmobile command
This works only for iOS so far. I'll implement Java version soon.

Updates #863
2019-08-18 03:03:01 +09:00