Changes the window size, or the display mode if fullscreen.
If width or height is 0, setMode will use the width or height of the desktop.
Changing the display mode may have side effects: for example, Canvases will be cleared; make sure to save their contents beforehand.
success = love.graphics.setMode( width, height, fullscreen, vsync, fsaa )
boolean fullscreen (false)
boolean vsync (true)
number fsaa (0)
If you have disabled the screen in conf.lua and use this function to manually create the window, then you must not call any other love.graphics.* function before this one. Doing so will result in undefined behavior and/or crashes.
© 2006–2016 LÖVE Development Team
Licensed under the GNU Free Documentation License, Version 1.3.