Difference between revisions of "love.graphics.getMode"

(Added a see also.)
m
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{newin|[[0.8.0]]|080|type=function}}
+
{{newinoldin|[[0.8.0]]|080|[[0.9.0]]|090|type=function|text=Moved to the [[love.window]] module as [[love.window.getMode]]}}
 
Returns the current display mode.
 
Returns the current display mode.
 
== Function ==
 
== Function ==
Line 14: Line 14:
 
{{param|boolean|vsync|True if vertical sync is enabled or false if disabled.}}
 
{{param|boolean|vsync|True if vertical sync is enabled or false if disabled.}}
 
{{param|number|fsaa|The number of FSAA samples.}}
 
{{param|number|fsaa|The number of FSAA samples.}}
 +
 
== See Also ==
 
== See Also ==
 
* [[parent::love.graphics]]
 
* [[parent::love.graphics]]
Line 19: Line 20:
 
[[Category:Functions]]
 
[[Category:Functions]]
 
{{#set:Description=Returns the current display mode.}}
 
{{#set:Description=Returns the current display mode.}}
{{#set:Since=080}}
+
{{#set:Sub-Category=Window}}
 
== Other Languages ==
 
== Other Languages ==
 
{{i18n|love.graphics.getMode}}
 
{{i18n|love.graphics.getMode}}

Latest revision as of 18:27, 27 December 2015

Available since LÖVE 0.8.0 and removed in LÖVE 0.9.0
Moved to the love.window module as love.window.getMode.

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