Table of Contents

Class DepthStencilState

Namespace
Microsoft.Xna.Framework.Graphics
Assembly
MonoGame.Framework.dll
public class DepthStencilState : GraphicsResource, IDisposable
Inheritance
DepthStencilState
Implements
Inherited Members

Constructors

DepthStencilState()

public DepthStencilState()

Fields

Default

public static readonly DepthStencilState Default

Field Value

DepthStencilState

DepthRead

public static readonly DepthStencilState DepthRead

Field Value

DepthStencilState

None

public static readonly DepthStencilState None

Field Value

DepthStencilState

Properties

CounterClockwiseStencilDepthBufferFail

public StencilOperation CounterClockwiseStencilDepthBufferFail { get; set; }

Property Value

StencilOperation

CounterClockwiseStencilFail

public StencilOperation CounterClockwiseStencilFail { get; set; }

Property Value

StencilOperation

CounterClockwiseStencilFunction

public CompareFunction CounterClockwiseStencilFunction { get; set; }

Property Value

CompareFunction

CounterClockwiseStencilPass

public StencilOperation CounterClockwiseStencilPass { get; set; }

Property Value

StencilOperation

DepthBufferEnable

public bool DepthBufferEnable { get; set; }

Property Value

bool

DepthBufferFunction

public CompareFunction DepthBufferFunction { get; set; }

Property Value

CompareFunction

DepthBufferWriteEnable

public bool DepthBufferWriteEnable { get; set; }

Property Value

bool

ReferenceStencil

public int ReferenceStencil { get; set; }

Property Value

int

StencilDepthBufferFail

public StencilOperation StencilDepthBufferFail { get; set; }

Property Value

StencilOperation

StencilEnable

public bool StencilEnable { get; set; }

Property Value

bool

StencilFail

public StencilOperation StencilFail { get; set; }

Property Value

StencilOperation

StencilFunction

public CompareFunction StencilFunction { get; set; }

Property Value

CompareFunction

StencilMask

public int StencilMask { get; set; }

Property Value

int

StencilPass

public StencilOperation StencilPass { get; set; }

Property Value

StencilOperation

StencilWriteMask

public int StencilWriteMask { get; set; }

Property Value

int

TwoSidedStencilMode

public bool TwoSidedStencilMode { get; set; }

Property Value

bool

Methods

Dispose(bool)

The method that derived classes should override to implement disposing of managed and native resources.

protected override void Dispose(bool disposing)

Parameters

disposing bool

True if managed objects should be disposed.

Remarks

Native resources should always be released regardless of the value of the disposing parameter.