Tesla Graphics Engine Documentation (January 2012)
BlendState Class
TeslaTesla.GraphicsBlendState
BlendState object that controls how pixels are blended during rendering.
Declaration Syntax
C#
public class BlendState : RenderState
Members
All Members Constructors Methods Properties



Icon Member Description
BlendState()()()()
Creates a new instance of BlendState with default values.

BlendState(IRenderSystemProvider)
Creates a new instance of BlendState with default values.

AdditiveBlend
Gets a built-in state object for additive blending, that is blending source and destination data without using alpha data.

AlphaBlendFunction
Gets or sets the function used when blending alpha values. The default is Add.

AlphaBlendNonPremultiplied
AlphaBlendPremultiplied
Gets a built-in state object for premultiplied alpha blending, that is blending source and destination data by using alpha where the color contains the alpha data.

AlphaDestinationBlend
Gets or sets the blend factor for the destination alpha value. The default is One.

AlphaSourceBlend
Gets or sets the blend factor for the source alpha value. The default is One.

BindRenderState()()()()
Binds the render state to the graphics pipeline. This is automatically called the first time the renderstate is applied or manually called to create the underlying implementation early.
(Overrides RenderState.BindRenderState()()()().)
BlendEnableCount
Gets the number of render targets that blending can be enabled for.

BlendFactor
Gets or sets the four-component (RGBA) blend factor for alpha blending. The default value is White.

ColorBlendFunction
Gets or sets the function used for blending color values. The default value is Add.

ColorDestinationBlend
Gets or sets the blend factor for the destination color.The default value is One.

ColorSourceBlend
Gets or sets the blend factor for the source color. The default value is One.

ColorWriteChannelsCount
Gets the number of render targets that can have an independent write mask for.

Dispose()()()()
Dispose the resource.
(Inherited from GraphicsResource.)
Dispose(Boolean)
Releases unmanaged and - optionally - managed resources
(Inherited from GraphicsResource.)
Equals(Object)
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Finalize()()()()
Releases unmanaged resources and performs other cleanup operations before the BlendState is reclaimed by garbage collection.
(Overrides GraphicsResource.Finalize()()()().)
GetBlendEnable(Int32)
Gets if blending is enabled for the render target index.

GetHashCode()()()()
Returns a hash code for this instance.
(Overrides Object.GetHashCode()()()().)
GetType()()()()
Gets the Type of the current instance.
(Inherited from Object.)
GetWriteChannels(Int32)
Gets the write mask used by the render target specified by its index.

Implementation
Gets the concrete implementation of this resource.
(Overrides GraphicsResource.Implementation.)
IsBound
Get if this render state has been bound to the pipeline.
(Overrides RenderState.IsBound.)
IsDisposed
Gets if the resource's implementation has been disposed.
(Inherited from GraphicsResource.)
MemberwiseClone()()()()
Creates a shallow copy of the current Object.
(Inherited from Object.)
MultiSampleMask
Gets or sets a mask that specifies which samples can be written to during multisampling. The default value is -1.

Name
Get or sets the name of this resource.
(Inherited from GraphicsResource.)
Opaque
Gets a built-in state object for opaque blending, that is there is no blending and source data is overwritten by destination data. This is the default state.

Read(ISavableReader)
Deserializes the object and populates it from the input.
(Overrides RenderState.Read(ISavableReader).)
RenderStateKey
Gets the RenderStateKey that is used to compare this state to another state.
(Overrides RenderState.RenderStateKey.)
RenderSystem
Gets or protected sets the render system that created this resource.
(Inherited from GraphicsResource.)
ResourceID
Gets or sets the ResourceID of this resource. Can only be set once, usually by the renderer.
(Inherited from GraphicsResource.)
SetBlendEnable(Int32, Boolean)
Sets if blending is enabled for the render target index.

SetWriteChannels(Int32, ColorWriteChannels)
Sets the write mask used by the render target specified by its index.

StateType
Get the enumeration describing this render state.
(Overrides RenderState.StateType.)
ToString()()()()
Returns a String that represents the current Object.
(Inherited from Object.)
Write(ISavableWriter)
Serializes the object and writes it to the output.
(Overrides RenderState.Write(ISavableWriter).)
Inheritance Hierarchy
Object
GraphicsResource
  RenderState
    BlendState

Assembly: Tesla (Module: Tesla) Version: 0.5.0.0 (0.5.0.0)