lovr.graphics.createWindow

Create the desktop window, usually used to mirror the headset display.

lovr.graphics.createWindow(width, height, fullscreen, msaa, title, icon)

Arguments

NameTypeDefaultDescription
widthnumber1080The width of the window.
heightnumber600The height of the window.
fullscreenbooleanfalseWhether the window should be fullscreen.
msaanumber0The number of samples to use for multisample antialiasing.
titlestringnilThe window title.
iconstringnilA path to an image to use for the window icon.

Returns

Nothing

Notes

This function can only be called once. It is normally called internally, but you can override this by setting window to nil in conf.lua. See lovr.conf for more information.

See also