Difference between revisions of "love.graphics.setMode"

m (1 revision: Importing from potato (again).)
m
Line 1: Line 1:
 
 
Changes the display mode.
 
Changes the display mode.
 
== Function ==
 
== Function ==
Line 9: Line 8:
 
{{param|number|width|Display width.}}
 
{{param|number|width|Display width.}}
 
{{param|number|height|Display height.}}
 
{{param|number|height|Display height.}}
{{param|number|fullscreen (false)|Fullscreen (true), or windowed (false).}}
+
{{param|boolean|fullscreen (false)|Fullscreen (true), or windowed (false).}}
 
{{param|number|vsync (true)|True if LOVE should wait for vsync, false otherwise.}}
 
{{param|number|vsync (true)|True if LOVE should wait for vsync, false otherwise.}}
 
{{param|number|fsaa (0)|The number of FSAA-buffers.}}
 
{{param|number|fsaa (0)|The number of FSAA-buffers.}}

Revision as of 12:55, 28 March 2010

Changes the display mode.

Function

Synopsis

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

Arguments

number width
Display width.
number height
Display height.
boolean fullscreen (false)
Fullscreen (true), or windowed (false).
number vsync (true)
True if LOVE should wait for vsync, false otherwise.
number fsaa (0)
The number of FSAA-buffers.

Returns

boolean True
if successful, false otherwise.

See Also