Display management #1358
lordloki
started this conversation in
Ideas/Features for UPBGE 0.3+
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Copied from @marechal-p #875
https://pythonapi.upbge.org/bge.render.html#bge.render.getDisplayDimensions
This function is useful when you have one display, but as soon as you have two it becomes a pain: What should we do if the screens have different resolutions? Also how to set the window size solely based onto the dimensions of one the monitors?
Proposition:
getDisplayCount()
to get the amount of monitors.getDisplayDimensions(displayIndex)
, that would return the dimensions for the given monitor.setFullscreen(displayIndex)
to set the fullscreen on one specific monitor.getFullscreen()
returning the index of the screen on which the fullscreen is set, orNone
if not set.disableFullscreen()
Electron framework has these kind of things if you want to see one API for it: https://electronjs.org/docs/api/screen#screen
Beta Was this translation helpful? Give feedback.
All reactions