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.getModes( )
This function does not include windowed modes, because they are generally supported with any screen resolution. To see the exact nature of the returned table, see example below.
Usage
love.graphics.getModes( )
Arguments
None
Returns
tableA table of width/height pairs.
Examples
Example 1: Queriying for display modes. function load()
   -- Get supported modes.
   modes = love.graphics.getModes()

   -- Print one by one.
   for i=1,#modes do
      print("(" .. modes[i].width .. "x" .. modes[i].height .. ")")
   end
end