Removed in LÖVE 0.9.0 |
Moved to the love.window module as love.window.getFullscreenModes. |
Gets a list of supported fullscreen modes.
modes = love.graphics.getModes( )
None.
table modes
modes = love.graphics.getModes() -- modes = { -- { width = 320, height = 240 }, -- { width = 640, height = 480 }, -- { width = 800, height = 600 }, -- { width = 1024, height = 768 }, -- ... -- }
modes = love.graphics.getModes() table.sort(modes, function(a, b) return a.width*a.height < b.width*b.height end) -- sort from smallest to largest