Difference between revisions of "love.graphics.setMode"

m
m
Line 3: Line 3:
 
=== Synopsis ===
 
=== Synopsis ===
 
<source lang="lua">
 
<source lang="lua">
True = love.graphics.setMode( width, height, fullscreen, vsync, fsaa )
+
success = love.graphics.setMode( width, height, fullscreen, vsync, fsaa )
 
</source>
 
</source>
 
=== Arguments ===
 
=== Arguments ===

Revision as of 12:57, 28 March 2010

Changes the display mode.

Function

Synopsis

success = 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).
boolean vsync (true)
True if LOVE should wait for vsync, false otherwise.
number fsaa (0)
The number of FSAA-buffers.

Returns

boolean success
True if successful, false otherwise.

See Also