RenderState.CullMode Property

Specifies how back-facing triangles are culled, if at all. The default value is CullMode.CounterClockwise.

Namespace: Microsoft.Xna.Framework.Graphics
Assembly: Microsoft.Xna.Framework (in microsoft.xna.framework.dll)

public CullMode CullMode { get; set; }

Property Value

The culling mode to set or get.

When drawing sprites, SpriteBatch.Begin does not save your current render state, and will change certain render state properties that may make 3D objects render incorrectly. This includes setting CullMode to CullMode.CullCounterClockwiseFace. You can choose to either reset the render state yourself after the call to SpriteBatch.End, or call SpriteBatch.Begin and pass in SaveStateMode.SaveState, which will restore the render state after sprites are drawn.

Xbox 360, Windows XP SP2, Windows Vista