Committing patch "[#27676] Change window size/resolution in realtime" by me.
Description: This patch allows the user to change the size of the window (or the resolution in fullscreen mode) using the new bge.render.setWindowSize() method. This only works in the Blenderplayer since it doesn't make a whole lot of sense for the embedded player.
This commit is contained in:
@@ -77,6 +77,14 @@ Functions
|
||||
|
||||
:rtype: integer
|
||||
|
||||
.. function:: setWindowSize(width, height)
|
||||
|
||||
Set the width and height of the window (in pixels). This also works for fullscreen applications.
|
||||
|
||||
:type width: integer
|
||||
:type height: integer
|
||||
|
||||
|
||||
.. function:: makeScreenshot(filename)
|
||||
|
||||
Writes a screenshot to the given filename.
|
||||
|
||||
Reference in New Issue
Block a user