Difference between revisions of "love.graphics.getStencilTest"

(Created page)
 
m
Line 12: Line 12:
 
=== Arguments ===
 
=== Arguments ===
 
None.
 
None.
{{param|boolean|enable (false)|Whether to enable stencil testing.}}
 
{{param|boolean|invert (false)|Whether to invert the stencil test. If true, the parts of drawn geometry that touch what has been previously drawn to the stencil buffer will be clipped. Otherwise everything else will be clipped.}}
 
 
=== Returns ===
 
=== Returns ===
 
{{param|boolean|enable|Whether stencil testing is enabled.}}
 
{{param|boolean|enable|Whether stencil testing is enabled.}}

Revision as of 19:52, 3 October 2015

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

Gets whether stencil testing is enabled.

When stencil testing is enabled, the geometry of everything that is drawn will be clipped / stencilled out based on whether it intersects with what has been previously drawn to the stencil buffer.

Each Canvas has its own stencil buffer.

Function

Synopsis

enabled, inverted = love.graphics.getStencilTest( )

Arguments

None.

Returns

boolean enable
Whether stencil testing is enabled.
boolean inverted
Whether the stencil test is inverted or not.

Nothing.

See Also


Other Languages