Difference between revisions of "love.window.close"

m
(Notes)
 
Line 14: Line 14:
 
Nothing.
 
Nothing.
 
== Notes ==
 
== Notes ==
This only close the window and leave LÖVE running in the background. If you want to stop the program, consider [[love.event.quit]].
+
This only closes the window and leaves LÖVE running in the background. If you want to stop the program, consider [[love.event.quit]].
 +
 
 
== See Also ==
 
== See Also ==
 
* [[parent::love.window]]
 
* [[parent::love.window]]

Latest revision as of 15:40, 17 October 2022

Available since LÖVE 0.10.0
This function is not supported in earlier versions.

Closes the window. It can be reopened with love.window.setMode.

O.png love.graphics functions and objects will cause a hard crash of LÖVE if used while the window is closed.  


O.png This function does not quit the program. Use love.event.quit to do that.  


Function

Synopsis

love.window.close( )

Arguments

None.

Returns

Nothing.

Notes

This only closes the window and leaves LÖVE running in the background. If you want to stop the program, consider love.event.quit.

See Also

Other Languages