SetRenderScreenSize

From OxeyeWiki

Jump to: navigation, search

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.

Daisymoon Video Lib

Example


   video.setRenderScreenSize(screenWidth * scale, screenHeight * scale)

Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox