Difference between revisions of "love.graphics.getFrontFaceWinding"

m
m
Line 1: Line 1:
 
{{newin|[[0.11.0]]|110|type=function}}
 
{{newin|[[0.11.0]]|110|type=function}}
 
 
Gets whether triangles with clockwise- or counterclockwise-ordered vertices are considered front-facing.
 
Gets whether triangles with clockwise- or counterclockwise-ordered vertices are considered front-facing.
  

Revision as of 00:12, 15 January 2018

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

Gets 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

winding = love.graphics.getFrontFaceWinding( )

Arguments

None.

Returns

VertexWinding winding
The winding mode being used. The default winding is counterclockwise ("ccw").

See Also


Other Languages