Difference between revisions of "love.graphics.setScissor"

(Graphical transformation is ineffectual)
m
Line 1: Line 1:
{{newin|[[0.4.0]]|040|type=function}}
 
 
Sets or disables scissor.
 
Sets or disables scissor.
  
Line 33: Line 32:
 
[[Category:Functions]]
 
[[Category:Functions]]
 
{{#set:Description=Sets or disables scissor.}}
 
{{#set:Description=Sets or disables scissor.}}
{{#set:Since=000}}
+
{{#set:Since=040}}
 
{{#set:Sub-Category=State}}
 
{{#set:Sub-Category=State}}
 
== Other Languages ==
 
== Other Languages ==
 
{{i18n|love.graphics.setScissor}}
 
{{i18n|love.graphics.setScissor}}

Revision as of 03:53, 24 March 2015

Sets or disables scissor.

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.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.

Function

Synopsis

love.graphics.setScissor( )

Arguments

None.

Returns

Nothing.

Notes

Disables scissor.

See Also


Other Languages