Difference between revisions of "love.graphics.getModes"

Line 15: Line 15:
  
 
-- modes = {
 
-- modes = {
 +
-- { width = 320, height = 240 },
 +
-- { width = 640, height = 480 },
 
-- { width = 800, height = 600 },
 
-- { width = 800, height = 600 },
-- { width = 1024, height = 767 },
+
-- { width = 1024, height = 768 },
 
-- ...
 
-- ...
 
-- }
 
-- }

Revision as of 08:36, 6 May 2010

Gets a list of supported fullscreen modes.

Function

Synopsis

modes = love.graphics.getModes( )

Arguments

None.

Returns

table modes
A table of width/height pairs.

Examples

Format of the returned table

modes = love.graphics.getModes()

-- modes = {
-- 	{ width = 320, height = 240 },
-- 	{ width = 640, height = 480 },
-- 	{ width = 800, height = 600 },
-- 	{ width = 1024, height = 768 },
-- 	...
-- }

See Also