Difference between revisions of "love.graphics.intersectScissor"

(Created page)
 
m (Function)
Line 6: Line 6:
 
The dimensions of the scissor is unaffected by graphical transformations (translate, scale, ...).
 
The dimensions of the scissor is unaffected by graphical transformations (translate, scale, ...).
 
== Function ==
 
== Function ==
Limits the drawing area to a specified rectangle.
 
 
=== Synopsis ===
 
=== Synopsis ===
 
<source lang="lua">
 
<source lang="lua">

Revision as of 07:52, 19 November 2015

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

Sets the scissor to the rectangle created by the intersection of the specified rectangle with the existing scissor. If no scissor is active yet, it behaves like love.graphics.setScissor.

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

The dimensions of the scissor is unaffected by graphical transformations (translate, scale, ...).

Function

Synopsis

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

Arguments

number x
x coordinate of the upper left corner of the rectangle to intersect with the existing scissor rectangle.
number y
y coordinate of the upper left corner of the rectangle to intersect with the existing scissor rectangle.
number width
width of the rectangle to intersect with the existing scissor rectangle.
number height
height of the rectangle to intersect with the existing scissor rectangle.

Returns

Nothing.

See Also


Other Languages