Version 0.3.2
LÖVE Documentation
OverviewLicenseCreditsInstallingGetting started
Devices
love.graphicslove.audiolove.keyboardlove.mouselove.filesystemlove.timerlove.system
Types
AnimationColorFontFileImageMusicParticleSystemSound
Callbacks
loadupdatedrawmousepressedmousereleasedkeypressedkeyreleased
Miscellaneous
ConstantsConfig filesKeyboard shortcuts
Function
love.graphics.isCreated( )
When configuring the display manually, it is useful to know if the display has been created. This way, we can avoid unnecessary display changes when the game reloads. The example below should make it more clear.

Note that the configuration option display_auto must be set to false to use manual configuration of the display.
Usage
love.graphics.isCreated( )
Arguments
None
Returns
booleanTrue if display has been set, false otherwise
Examples
Example 1: Manually setting up the display function load()
   -- Only setup the display if it hasn't been setup
   -- already! When we later call love.system.restart()
   -- for development purposes, the display mode is not
   -- changed again! ^-^
   if not love.graphics.isCreated() then
      love.graphics.setMode(1024, 768, false)
   end

-- love.graphics.isCreated() now returns true.
end