ebiten
ebiten copied to clipboard
ebiten: Allow SetWindowDecorated or other functions on the native fullscreen mode on macOS
Just remembering the state should be fine.
-
SetWindowDecorated -
SetWindowResizable -
SetWindowFloating -
SetWindowSize
This causes incompatible behaviors between 2.1 and 2.2. As we have not released 2.1 yet, we can change the current behavior (doing nothing).
- Causing panics or errors: The problem is that an Ebiten user cannot detect the native fullscreen state, then this is not predictable.
- Implement this for 2.1: The problem is that back porting to 1.12 and 2.0 will be significant amount.
For example, as resizing state can be detected by IsWindowResizable, probably it would be fine to add this little breaking change.
Revisit this later.
This (especially SetWindowSize) seems pretty trickier than I expected. Let me defer this.
Note to myself
-
origWindowPosX/Yis NOT updated when the window is dragged. This is different fromwindowWidth/HeightInDIP. I think we should make these parameters consistent by using GLFW callbacks. - As there is a plan to rewrite GLFW part in pure Go for Windows, the situation might be different in the near future.