Difference between revisions of "love.graphics.getModes"
m (1 revision: Importing from potato (again).) |
|||
Line 1: | Line 1: | ||
− | |||
Gets a list of supported fullscreen modes. | Gets a list of supported fullscreen modes. | ||
== Function == | == Function == | ||
Line 16: | Line 15: | ||
-- modes = { | -- modes = { | ||
− | -- { width = 800, height = | + | -- { width = 800, height = 600 }, |
-- { width = 1024, height = 767 }, | -- { width = 1024, height = 767 }, | ||
-- ... | -- ... |
Revision as of 08:35, 6 May 2010
Gets a list of supported fullscreen modes.
Contents
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 = 600 },
-- { width = 1024, height = 767 },
-- ...
-- }