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