Difference between revisions of "love.graphics.checkMode"

m (1 revision: Imported docs from potato.)
Line 1: Line 1:
  
 
+
Checks if a display mode is supported.
 
== Function ==
 
== Function ==
 
=== Synopsis ===
 
=== Synopsis ===
Line 15: Line 15:
 
* [[parent::love.graphics]]
 
* [[parent::love.graphics]]
 
[[Category:Functions]]
 
[[Category:Functions]]
{{#set:Description=}}
+
{{#set:Description=Checks if a display mode is supported.}}

Revision as of 16:17, 14 February 2010

Checks if a display mode is supported.

Function

Synopsis

supported = love.graphics.checkMode( width, height, fullscreen )

Arguments

number width
The display width.
number height
The display height.
boolean fullscreen
True to check for fullscreen, false for windowed.

Returns

boolean supported
True if supported, false if not.

See Also