Difference between revisions of "love.graphics.setFrontFaceWinding"

(Created page)
 
m (0.11.0 -> 11.0)
 
(2 intermediate revisions by one other user not shown)
Line 1: Line 1:
{{newin|[[0.11.0]]|110|type=function}}
+
{{newin|[[11.0]]|110|type=function}}
 
 
 
Sets whether triangles with clockwise- or counterclockwise-ordered vertices are considered front-facing.
 
Sets whether triangles with clockwise- or counterclockwise-ordered vertices are considered front-facing.
  
Line 11: Line 10:
 
</source>
 
</source>
 
=== Arguments ===
 
=== Arguments ===
{{param|VertexWinding|winding|The winding mode to use ("ccw" or "cw"). The default winding is counterclockwise ("ccw").}}
+
{{param|VertexWinding|winding|The winding mode to use. The default winding is counterclockwise ("ccw").}}
 
=== Returns ===
 
=== Returns ===
 
Nothing.
 
Nothing.

Latest revision as of 12:45, 29 December 2018

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

Sets whether triangles with clockwise- or counterclockwise-ordered vertices are considered front-facing.

This is designed for use in combination with Mesh face culling. Other love.graphics shapes, lines, and sprites are not guaranteed to have a specific winding order to their internal vertices.

Function

Synopsis

love.graphics.setFrontFaceWinding( winding )

Arguments

VertexWinding winding
The winding mode to use. The default winding is counterclockwise ("ccw").

Returns

Nothing.

See Also


Other Languages