Click or drag to resize
DigitalRunePostProcessor Class
Performs scene post-processing, like filtering, color manipulation, etc.
Inheritance Hierarchy
System.Object
  DigitalRune.Graphics.PostProcessing.PostProcessor
    More...

Namespace: DigitalRune.Graphics.PostProcessing
Assembly: DigitalRune.Graphics (in DigitalRune.Graphics.dll) Version: 1.2.0.0 (1.2.1.14562)
Syntax
public abstract class PostProcessor : IDisposable, 
	INamedObject

The PostProcessor type exposes the following members.

Constructors
  NameDescription
Protected methodPostProcessor
Initializes a new instance of the PostProcessor class.
Top
Methods
  NameDescription
Public methodDispose()
Releases all resources used by an instance of the PostProcessor class.
Protected methodDispose(Boolean)
Releases the unmanaged resources used by an instance of the PostProcessor class and optionally releases the managed resources.
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Protected methodOnDisable
Called when this post-processor is disabled.
Protected methodOnEnable
Called when this post-processor is enabled.
Protected methodOnProcess
Called when the post-processor should perform the post-processing.
Public methodProcess
Performs the post-processing using the SourceTexture and the RenderTarget specified in the render context.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Properties
  NameDescription
Public propertyDefaultTargetFormat
Gets or sets the default target format. (This property is used by the PostProcessorChain).
Public propertyEnabled
Gets or sets a value indicating whether this post-processor is enabled.
Public propertyGraphicsService
Gets the graphics service.
Public propertyIsDisposed
Gets a value indicating whether this post-processor has been disposed of.
Public propertyName
Gets or sets the name of the post-processor.
Top
Remarks

A post-processor reads a source texture, which must be specified in the SourceTexture property of the RenderContext. It processes the source texture and writes its output to a render target, which must be specified in the RenderTarget property of the RenderContext. The render target can be null to write into the back buffer of the graphics device.

The post-processor will always call GraphicsDevice.SetRenderTarget(RenderTarget2D) for the specified render target - that means it is not necessary that the render target is currently set in the graphics device.

In general, the SourceTexture and the RenderTarget must not reference the same render target. Only if the post-processor uses multi-pass rendering internally, or if the post-processor is a PostProcessorChain consisting of several post-processors, then the source texture and the render target can reference the same object. That means, it depends on the used post-processor whether it is possible or not. If it is not possible, and the same render target is used as the source texture and the target, then XNA will throw an exception.

Post-processors can be chained together: See class PostProcessorChain for more information.

See Also
Inheritance Hierarchy
System.Object
  DigitalRune.Graphics.PostProcessing.PostProcessor
    DigitalRune.Graphics.PostProcessing.BloomFilter
    DigitalRune.Graphics.PostProcessing.Blur
    DigitalRune.Graphics.PostProcessing.CameraMotionBlur
    DigitalRune.Graphics.PostProcessing.CieSkyFilter
    DigitalRune.Graphics.PostProcessing.ColorCorrectionFilter
    DigitalRune.Graphics.PostProcessing.ColorEncoder
    DigitalRune.Graphics.PostProcessing.CopyFilter
    DigitalRune.Graphics.PostProcessing.DepthOfFieldFilter
    DigitalRune.Graphics.PostProcessing.DownsampleFilter
    DigitalRune.Graphics.PostProcessing.EdgeFilter
    DigitalRune.Graphics.PostProcessing.EffectPostProcessor
    DigitalRune.Graphics.PostProcessing.FxaaFilter
    DigitalRune.Graphics.PostProcessing.GodRayFilter
    DigitalRune.Graphics.PostProcessing.GrainFilter
    DigitalRune.Graphics.PostProcessing.HdrFilter
    DigitalRune.Graphics.PostProcessing.KawaseBlur
    DigitalRune.Graphics.PostProcessing.LuminanceFilter
    DigitalRune.Graphics.PostProcessing.MadFilter
    DigitalRune.Graphics.PostProcessing.ObjectMotionBlur
    DigitalRune.Graphics.PostProcessing.PostProcessorChain
    DigitalRune.Graphics.PostProcessing.RadialBlur
    DigitalRune.Graphics.PostProcessing.SaoFilter
    DigitalRune.Graphics.PostProcessing.SaturationFilter
    DigitalRune.Graphics.PostProcessing.SepiaFilter
    DigitalRune.Graphics.PostProcessing.SharpeningFilter
    DigitalRune.Graphics.PostProcessing.SimpleMotionBlur
    DigitalRune.Graphics.PostProcessing.SmaaFilter
    DigitalRune.Graphics.PostProcessing.SsaoFilter
    DigitalRune.Graphics.PostProcessing.UnsharpMaskingFilter
    DigitalRune.Graphics.PostProcessing.UpsampleFilter