Difference between revisions of "love.graphics.reset"

m
(Updated for 0.9.x)
Line 1: Line 1:
 
Resets the current graphics settings.
 
Resets the current graphics settings.
  
Calling reset makes the current drawing color white, the current background color black, resets any active [[Canvas]] or [[PixelEffect]], and removes any scissor settings. It sets the [[BlendMode]] to <tt>alpha</tt> and [[ColorMode]] to <tt>modulate.</tt> It also sets both the point and line drawing modes to <tt>smooth</tt> and their sizes to <tt>1.0</tt>.
+
Calling reset makes the current drawing color white, the current background color black, disables any active [[Canvas]] or [[Shader]], and removes any scissor settings. It sets the [[BlendMode]] to <tt>alpha</tt>, enables all [[love.graphics.setColorMask|color component masks]], disables [[love.graphics.setWireframe|wireframe mode]] and resets the current graphics transformation to the [[love.graphics.origin|origin]]. It also sets both the point and line drawing modes to <tt>smooth</tt> and their sizes to <tt>1.0</tt>.
 
== Function ==
 
== Function ==
 
=== Synopsis ===
 
=== Synopsis ===

Revision as of 14:38, 14 May 2014

Resets the current graphics settings.

Calling reset makes the current drawing color white, the current background color black, disables any active Canvas or Shader, and removes any scissor settings. It sets the BlendMode to alpha, enables all color component masks, disables wireframe mode and resets the current graphics transformation to the origin. It also sets both the point and line drawing modes to smooth and their sizes to 1.0.

Function

Synopsis

love.graphics.reset( )

Arguments

None

Returns

Nothing

See Also


Other Languages