Difference between revisions of "love.graphics.setScissor"

m (It can in fact do both.)
Line 28: Line 28:
 
* [[love.graphics.getScissor]]
 
* [[love.graphics.getScissor]]
 
[[Category:Functions]]
 
[[Category:Functions]]
{{#set:Description=Disables scissor.}}
+
{{#set:Description=Sets or disables scissor.}}
 
{{#set:Since=000}}
 
{{#set:Since=000}}
 
== Other Languages ==
 
== Other Languages ==
 
{{i18n|love.graphics.setScissor}}
 
{{i18n|love.graphics.setScissor}}

Revision as of 13:32, 10 December 2011

Available since LÖVE 0.4.0
This function is not supported in earlier versions.

Sets or disables scissor.

The scissor limits the drawing area to a specified rectangle. This affects all graphics calls, including love.graphics.clear.

Function

Synopsis

love.graphics.setScissor( )

Arguments

None.

Returns

Nothing.

Function

Synopsis

love.graphics.setScissor( x, y, width, height )

Arguments

number x
x coordinate of upper left corner.
number y
y coordinate of upper left corner.
number width
width of clipping rectangle.
number height
height of clipping rectangle.

Returns

Nothing.

See Also


Other Languages