Difference between revisions of "love.graphics.getMode"

(Added a see also.)
m
Line 20: Line 20:
 
{{#set:Description=Returns the current display mode.}}
 
{{#set:Description=Returns the current display mode.}}
 
{{#set:Since=080}}
 
{{#set:Since=080}}
 +
{{#set:Sub-Category=Window}}
 
== Other Languages ==
 
== Other Languages ==
 
{{i18n|love.graphics.getMode}}
 
{{i18n|love.graphics.getMode}}

Revision as of 01:17, 29 March 2013

Available since LÖVE 0.8.0
This function is not supported in earlier versions.

Returns the current display mode.

Function

Synopsis

width, height, fullscreen, vsync, fsaa = love.graphics.getMode( )

Arguments

None.

Returns

number width
Display width.
number height
Display height.
boolean fullscreen
Fullscreen (true) or windowed (false).
boolean vsync
True if vertical sync is enabled or false if disabled.
number fsaa
The number of FSAA samples.

See Also


Other Languages