SetRenderScreenSize
From OxeyeWiki
(Difference between revisions)
Jeb (Talk | contribs)
(Created page with '{{VideoMethod | video.setRenderScreenSize(width, height) | Modifies the size of the screen that Daisy renders to, without changing the physical size of the game window. This can ...')
(Created page with '{{VideoMethod | video.setRenderScreenSize(width, height) | Modifies the size of the screen that Daisy renders to, without changing the physical size of the game window. This can ...')
Latest revision as of 22:04, 27 December 2009
video.setRenderScreenSize(width, height) | ||
Modifies the size of the screen that Daisy renders to, without changing the physical size of the game window. This can be used to fake screen zooming effects, since the render area can be made bigger or smaller than the physical size (making it bigger will zoom out, making it smaller will zoom in). It's recommended, but not necessary, to maintain aspect ratio when changing render size. | ||
Parameter | Expected Type | Description |
width | An integer | The new render screen width. |
height | An integer | The new render screen height. |
Returns | ||
Returns nothing. |
Example
video.setRenderScreenSize(screenWidth * scale, screenHeight * scale)