-
-
Notifications
You must be signed in to change notification settings - Fork 622
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ebiten: add a new API to return the logical screen size (= the result of Layout) #2986
Comments
Maximized window and fullsceening are different things. Do you mean you want to get a monitor size at WindowSize when fullscreening? |
I meant FullScreen mode. I would like a function to get the viewable size that ebitengine is drawing on, regardless of window state. Essentially, I'm trying to write code to center something on the screen and I have to use that snippet above to make it work properly whether the game is in FullScreen mode or not. Ideally this new function would work for mobile devices too. |
You can keep the arguments of
Mobiles don't have a window. |
True, but the engine has those values to send to layout so why not expose them in an easy to access way? |
Good point. I hesitated to add a new global function that are available only when the game is running. Let me think. |
Operating System
What feature would you like to be added?
I would like a new function or enhancement to GetScreenSize that gives the proper size of the viewable area regardless of if it is maximized or not.
It would be ideal of this new function worked in all environments.
It feels clunky to have to write code like this to get the actual viewable area:
(I know this is a little outdated and should use Monitor().Size() )
Why is this needed?
To simplify the development experience.
The text was updated successfully, but these errors were encountered: