Difference between revisions of "love.graphics.getModes"

m (1 revision: Imported docs from potato.)
Line 1: Line 1:
  
 
+
Gets a list of supported fullscreen modes.
 
== Function ==
 
== Function ==
 
=== Synopsis ===
 
=== Synopsis ===
Line 24: Line 24:
 
* [[parent::love.graphics]]
 
* [[parent::love.graphics]]
 
[[Category:Functions]]
 
[[Category:Functions]]
{{#set:Description=}}
+
{{#set:Description=Gets a list of supported fullscreen modes.}}

Revision as of 16:17, 14 February 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 = 800, height = 800 },
-- 	{ width = 1024, height = 767 },
-- 	...
-- }

See Also