Table of Contents

Class BlendState

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

Constructors

BlendState()

public BlendState()

Fields

Additive

public static readonly BlendState Additive

Field Value

BlendState

AlphaBlend

public static readonly BlendState AlphaBlend

Field Value

BlendState

NonPremultiplied

public static readonly BlendState NonPremultiplied

Field Value

BlendState

Opaque

public static readonly BlendState Opaque

Field Value

BlendState

Properties

AlphaBlendFunction

public BlendFunction AlphaBlendFunction { get; set; }

Property Value

BlendFunction

AlphaDestinationBlend

public Blend AlphaDestinationBlend { get; set; }

Property Value

Blend

AlphaSourceBlend

public Blend AlphaSourceBlend { get; set; }

Property Value

Blend

BlendFactor

The color used as blend factor when alpha blending.

public Color BlendFactor { get; set; }

Property Value

Color

Remarks

BlendFactor is set to this value when this BlendState is bound to a GraphicsDevice.

ColorBlendFunction

public BlendFunction ColorBlendFunction { get; set; }

Property Value

BlendFunction

ColorDestinationBlend

public Blend ColorDestinationBlend { get; set; }

Property Value

Blend

ColorSourceBlend

public Blend ColorSourceBlend { get; set; }

Property Value

Blend

ColorWriteChannels

public ColorWriteChannels ColorWriteChannels { get; set; }

Property Value

ColorWriteChannels

ColorWriteChannels1

public ColorWriteChannels ColorWriteChannels1 { get; set; }

Property Value

ColorWriteChannels

ColorWriteChannels2

public ColorWriteChannels ColorWriteChannels2 { get; set; }

Property Value

ColorWriteChannels

ColorWriteChannels3

public ColorWriteChannels ColorWriteChannels3 { get; set; }

Property Value

ColorWriteChannels

IndependentBlendEnable

Enables use of the per-target blend states.

public bool IndependentBlendEnable { get; set; }

Property Value

bool

this[int]

Returns the target specific blend state.

public TargetBlendState this[int index] { get; }

Parameters

index int

The 0 to 3 target blend state index.

Property Value

TargetBlendState

A target blend state.

MultiSampleMask

public int MultiSampleMask { get; set; }

Property Value

int

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.