lovr.system.openWindow

Edit

Opens the desktop window. If the window is already open, this function does nothing.

lovr.system.openWindow(options)

Arguments

NameTypeDefaultDescription
optionstable Window options.
.widthnumber720 The width of the window, or 0 to use the width of the monitor.
.heightnumber800 The height of the window, or 0 to use the height of the monitor.
.fullscreenboolean Whether the window should be fullscreen.
.resizableboolean Whether the window should be resizable.
.titlestring The window title.
.iconstring An Image or path to an image file to use for the window icon.

Returns

Nothing

Notes

By default, the window is opened automatically, but this can be disabled by setting t.window to nil in conf.lua.

See also