MeshHelper.SwapWindingOrder Method (Microsoft.Xna.Framework.Content.Pipeline.Graphics)

Reverses the triangle winding order of the mesh.

Namespace: Microsoft.Xna.Framework.Content.Pipeline.Graphics
Assembly: MonoGame.Framework.Content.Pipeline (MonoGame.Framework.Content.Pipeline.dll 3.8.0.1082)
  • C#
  • VB
  • F#
public static void SwapWindingOrder(
	MeshContent mesh
)

Syntax for VB is not yet implemented.

Syntax for F# is not yet implemented.

Parameters

mesh
Type: Microsoft.Xna.Framework.Content.Pipeline.Graphics.MeshContent
The mesh which will be modified.
This method is useful when changing the direction of backface culling like when switching between left/right handed coordinate systems.
Supported in:

    
 Windows DirectX Desktop
    
 Linux Desktop