Hajime Hoshi
812a29bf07
ui: Refactoring: theUIContext is always non-nil
2019-12-22 18:53:23 +09:00
Hajime Hoshi
4c6006343e
ui: Refactoring
2019-12-22 17:22:54 +09:00
Hajime Hoshi
1566bb1cd3
ui: Update comments of RunGame
2019-12-22 13:21:15 +09:00
Hajime Hoshi
807f91e6ca
docs: Update comments
2019-12-22 12:59:28 +09:00
Hajime Hoshi
62bbb8818e
ui: Update comments at WindowSize and SetWindowSize
...
Fixes #1030
2019-12-22 12:52:52 +09:00
Hajime Hoshi
c9863284cf
uidriver/glfw: Set a default window size
...
Now RunGame can be called without SetWindowSize.
2019-12-22 12:51:36 +09:00
Hajime Hoshi
0e63241bcb
Update comments
2019-12-22 03:50:30 +09:00
Hajime Hoshi
7d56e4335e
ui: Add RunGame, WindowSize and SetWindowSize
...
This change introduces the new APIs RunGame, WindowSize and
SetWindowSize. These new APIs hides the notion of 'scale', and is
more flexible with the outside size change. This means that we can
introduce a resizable window.
This change also adds -legacy flag to examples/windowsize. If the
flag is off, the new APIs are used.
This change deprecates these functions since the notion of 'scale'
is deprecated:
* ScreenScale
* ScreenSizeInFullscreen
* SetScreenScale
* SetScreenSize
Fixes #943 , #571
Updates #320
2019-12-22 03:35:31 +09:00
Hajime Hoshi
57d527bea2
driver: Remove 'title' argument from UI.Run
2019-12-22 01:41:51 +09:00
Hajime Hoshi
8b995b086b
driver: Remove some arguments from UI.Run
2019-12-21 22:52:23 +09:00
Hajime Hoshi
8013fef9ea
uidriver: Bug fix: Needed to implement MonitorPosition
2019-12-21 21:15:58 +09:00
Hajime Hoshi
dabaf66b81
uidriver: Remove width/height/scale arguments from run
...
The initial window position is determined on ebiten package side.
Updates #943
2019-12-21 20:10:58 +09:00
Hajime Hoshi
d07028735f
uidriver/glfw: Refactoring
2019-12-21 19:52:07 +09:00
Hajime Hoshi
987f333d95
uidriver/glfw: Rename variables
2019-12-21 17:34:58 +09:00
Hajime Hoshi
aad5db8939
examples/windowsize: Change the delta of moving the window
2019-12-21 17:08:04 +09:00
Hajime Hoshi
2e8358529c
uidriver/glfw: Bug fix: WindowPos/SetWindowPos should convert pixels
...
This change also enables these functions even on fullscreen mode.
Fixes #1010
2019-12-21 17:03:19 +09:00
Hajime Hoshi
f3712a7e62
ui: Add comments about scaleForWindow
2019-12-20 03:59:32 +09:00
Hajime Hoshi
ba0279ebe3
ui: Bug fix: Stop the loop of window-size recalculation
2019-12-20 01:56:27 +09:00
Hajime Hoshi
09ea15e0ff
shareable: Bug fix: Unexpected allocation when extending an image
...
Fixes #1028
2019-12-20 01:13:28 +09:00
Hajime Hoshi
85cbc7e56b
Enable to compile Ebiten on js/wasm with Go 1.14
...
Fixes #1024
2019-12-19 00:45:53 +09:00
Hajime Hoshi
216eacb0ba
test: Update Go version in TravisCI
2019-12-18 12:53:17 +09:00
Hajime Hoshi
9ead4c24f1
test: Bug fix: Test a correct commit in PRs ( #1023 )
...
Fixes #1021
2019-12-18 03:17:44 +09:00
Hajime Hoshi
b54278ad6f
Add Zoron to AUTHORS
2019-12-17 21:30:13 +09:00
Zoron
3622a9b0da
Update README.md ( #1020 )
...
Update Cheat Sheet link: https://ebiten.org/documents/cheatsheet.html
2019-12-17 21:27:30 +09:00
Hajime Hoshi
9486defdae
uidriver/mobile: Rely on uiContext's Layout function to determine the screen size
2019-12-17 02:16:45 +09:00
Hajime Hoshi
6a8013ed37
ui: Reduce arguments from newUIContext
2019-12-16 11:12:38 +09:00
Hajime Hoshi
664cf62a29
ui: Reduce members from uiContext
2019-12-16 02:10:58 +09:00
Hajime Hoshi
97ddef0047
ui: Protect defaultGame's memers with mutex
2019-12-16 01:44:55 +09:00
Hajime Hoshi
46a7ae6175
ui: Define and use defaultGame
...
This is a pareparation for Game interface and RunGame.
Updates #943
2019-12-16 01:21:16 +09:00
Hajime Hoshi
12a13892cd
ui: Protect uiContext.scaleForWindow by mutex
2019-12-15 20:15:13 +09:00
Hajime Hoshi
bda11b0e17
driver: Add UI.SetWindowSize and UIContext.Layout
...
This is a preparation to introduce RunGame function.
Updates # 943 (Fix this line before committing)
2019-12-15 02:29:43 +09:00
Hajime Hoshi
4341c5ff1a
Use TRAVIS_COMMIT to specify the commit explicitly
2019-12-14 17:40:50 +09:00
Hajime Hoshi
d8f02cf03e
uidriver/js: Bug fix: Compile error on CursorMode
2019-12-14 12:54:21 +09:00
Hajime Hoshi
dd0d129a22
Add Zachary Burkett to AUTHORS
2019-12-14 12:40:27 +09:00
Hajime Hoshi
45f6e246e7
ui: Rename files
2019-12-14 12:35:35 +09:00
Zachary Burkett
ed19d6fae9
Add cursor capture functionality ( #1016 )
...
Fixes #1016
2019-12-14 12:30:03 +09:00
Hajime Hoshi
ba0e8ef13f
uidriver/mobile: Refactoring: Rename variables
2019-12-13 02:50:57 +09:00
Hajime Hoshi
7f88732cc5
ui: Fix comments
2019-12-12 12:00:45 +09:00
Hajime Hoshi
2871795895
uidriver/glfw: Refactoring: Remove mutex from Input
...
Mixing a thread and a mutex is risky. Use a thread if possible.
2019-12-12 03:20:24 +09:00
Hajime Hoshi
a3343afc36
graphicsdriver/opengl/gl: Use pkg-config instead of LDFLAGS
...
Updates #1012
2019-12-11 03:00:25 +09:00
Hajime Hoshi
00fb4cd2f9
uidriver/glfw: Refactoring: Remove windowWidthInDP
2019-12-09 01:39:42 +09:00
Hajime Hoshi
190feb6ecd
uidriver/glfw: Rename variables
...
DP represents a device independent pixel.
2019-12-09 00:19:38 +09:00
Hajime Hoshi
7d403930af
uidriver/glfw: Bug fix: Compile errors on Windows and Linux
2019-12-08 23:20:09 +09:00
Hajime Hoshi
c243bfcdd8
uidriver/glfw: Fix comments
2019-12-08 23:03:13 +09:00
Hajime Hoshi
3e89e7e561
uidriver/glfw: Bug fix: Show the window at last on initialization
2019-12-08 23:00:10 +09:00
Hajime Hoshi
e00a190f22
uidriver/glfw: Refactoring: Add toDeviceIndependentPixel / toDeviceDependentPixel
2019-12-08 22:09:12 +09:00
Hajime Hoshi
a0cf8bac21
uidriver/glfw: Refactoring: Limit the calls of devicescale.GetAt
2019-12-08 20:55:40 +09:00
Hajime Hoshi
8e9f5b9535
driver: Remove Suspend/ResumeAudio from UIContext
2019-12-08 16:17:02 +09:00
Hajime Hoshi
63fbffa9f6
uidriver/glfw: Fix thread issues at reqWidth/reqHeight
2019-12-08 02:44:14 +09:00
Hajime Hoshi
22e3db6814
uidriver/glfw: Add comments
...
Updates #1004
2019-12-08 02:04:04 +09:00