Difference between revisions of "love.graphics.present"

m (Clean up link.)
(Vsync blocking information.)
Line 2: Line 2:
  
 
This function is used when writing your own [[love.run]] function. It presents all the results of your drawing operations on the screen. See the example in [[love.run]] for a typical use of this function.
 
This function is used when writing your own [[love.run]] function. It presents all the results of your drawing operations on the screen. See the example in [[love.run]] for a typical use of this function.
 +
 
== Function ==
 
== Function ==
 
=== Synopsis ===
 
=== Synopsis ===
Line 7: Line 8:
 
love.graphics.present( )
 
love.graphics.present( )
 
</source>
 
</source>
 +
 
=== Arguments ===
 
=== Arguments ===
 
None.
 
None.
 +
 
=== Returns ===
 
=== Returns ===
 
Nothing.
 
Nothing.
 +
 +
== Notes ==
 +
* If [[love.window.setMode]] has <code>vsync</code> equal to <code>true</code>, this function can't run more frequently than the refresh rate (e.g. 60 Hz), and will halt the program until ready if necessary.
 +
 
== See Also ==
 
== See Also ==
 
* [[love.graphics.clear]]
 
* [[love.graphics.clear]]

Revision as of 11:59, 25 December 2016

Displays the results of drawing operations on the screen.

This function is used when writing your own love.run function. It presents all the results of your drawing operations on the screen. See the example in love.run for a typical use of this function.

Function

Synopsis

love.graphics.present( )

Arguments

None.

Returns

Nothing.

Notes

  • If love.window.setMode has vsync equal to true, this function can't run more frequently than the refresh rate (e.g. 60 Hz), and will halt the program until ready if necessary.

See Also


Other Languages