Difference between revisions of "love.graphics.getModes"

m (Add see alsos)
Line 8: Line 8:
 
None.
 
None.
 
=== Returns ===
 
=== Returns ===
{{param|table|modes|A table of width/height pairs.}}
+
{{param|table|modes|A table of width/height pairs. (Note that this may not be in order.)}}
 
== Examples ==
 
== Examples ==
 
=== Format of the returned table ===
 
=== Format of the returned table ===
Line 24: Line 24:
 
== See Also ==
 
== See Also ==
 
* [[parent::love.graphics]]
 
* [[parent::love.graphics]]
 +
* [[love.graphics.checkMode]]
 +
* [[love.graphics.setMode]]
 
[[Category:Functions]]
 
[[Category:Functions]]
 
{{#set:Description=Gets a list of supported fullscreen modes.}}
 
{{#set:Description=Gets a list of supported fullscreen modes.}}

Revision as of 17:20, 28 September 2011

Gets a list of supported fullscreen modes.

Function

Synopsis

modes = love.graphics.getModes( )

Arguments

None.

Returns

table modes
A table of width/height pairs. (Note that this may not be in order.)

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


Other Languages