Microsoft.Xna.Framework.Graphics
Class BlendState

java.lang.Object
  extended by Microsoft.Xna.Framework.Graphics.GraphicsResource
      extended by Microsoft.Xna.Framework.Graphics.BlendState
All Implemented Interfaces:
IDisposable

public class BlendState
extends GraphicsResource

Contains blend state for the device.

Author:
Halofreak1990

Field Summary
static BlendState Additive
          A built-in state object with settings for additive blend, that is adding the destination data to the source data without using alpha.
static BlendState AlphaBlend
          A built-in state object with settings for alpha blend, that is blending the source and destination data using alpha.
static BlendState NonPremultiplied
           
static BlendState Opague
           
 
Fields inherited from class Microsoft.Xna.Framework.Graphics.GraphicsResource
_parent, Disposing, Name, Tag
 
Constructor Summary
BlendState()
          Creates an instance of the BlendState class with default values, using additive color and alpha blending.
 
Method Summary
protected  void Dispose(boolean disposing)
          Immediately releases the unmanaged resources used by this object.
 BlendFunction getAlphaBlendFunction()
          Gets the arithmetic operation when blending alpha values.
 void setAlphaBlendFunction(BlendFunction value)
          Sets the arithmetic operation when blending alpha values.
 
Methods inherited from class Microsoft.Xna.Framework.Graphics.GraphicsResource
Dispose, finalize, GraphicsDevice, IsDisposed, raise_disposing, toString
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

Additive

public static final BlendState Additive
A built-in state object with settings for additive blend, that is adding the destination data to the source data without using alpha.


AlphaBlend

public static final BlendState AlphaBlend
A built-in state object with settings for alpha blend, that is blending the source and destination data using alpha.


NonPremultiplied

public static final BlendState NonPremultiplied

Opague

public static final BlendState Opague
Constructor Detail

BlendState

public BlendState()
Creates an instance of the BlendState class with default values, using additive color and alpha blending.

Method Detail

getAlphaBlendFunction

public BlendFunction getAlphaBlendFunction()
Gets the arithmetic operation when blending alpha values. The default is BlendFunction.Add.


setAlphaBlendFunction

public void setAlphaBlendFunction(BlendFunction value)
Sets the arithmetic operation when blending alpha values. The default is BlendFunction.Add.


Dispose

protected void Dispose(boolean disposing)
Immediately releases the unmanaged resources used by this object.

Overrides:
Dispose in class GraphicsResource