Class DrawEffect
The base class in charge of applying and drawing an effect.
[DataContract]
public abstract class DrawEffect : RendererBase, IComponent, IReferencable, ICollectorHolder, IGraphicsRenderer, IGraphicsRendererBase, IGraphicsRendererCore, IDisposable
- Inheritance
-
DrawEffect
- Implements
- Derived
- Inherited Members
- Extension Methods
Constructors
DrawEffect()
Initializes a new instance of the DrawEffect class with the given RenderContext.
protected DrawEffect()
DrawEffect(RenderContext, string)
Initializes a new instance of the DrawEffect class.
protected DrawEffect(RenderContext context, string name = null)
Parameters
context
RenderContextThe context.
name
stringThe name.
DrawEffect(string)
Initializes a new instance of the DrawEffect class.
protected DrawEffect(string name)
Parameters
name
string
Properties
Parameters
Gets the parameters.
public ParameterCollection Parameters { get; protected set; }
Property Value
- ParameterCollection
The parameters.
SamplingPattern
public SamplingPattern SamplingPattern { get; set; }
Property Value
Scaler
Gets a shared ImageScaler.
protected ImageScaler Scaler { get; }
Property Value
Methods
Draw(RenderDrawContext, string)
Draws a full screen quad using iterating on each pass of this effect.
public void Draw(RenderDrawContext context, string name)
Parameters
context
RenderDrawContextname
string
Draw(RenderDrawContext, string, params object[])
Draws a full screen quad using iterating on each pass of this effect.
public void Draw(RenderDrawContext context, string nameFormat, params object[] args)
Parameters
context
RenderDrawContextnameFormat
stringargs
object[]
Reset()
Resets the state of this effect.
public virtual void Reset()
SetDefaultParameters()
Sets the default parameters (called at constructor time and if Reset() is called)
protected virtual void SetDefaultParameters()
ToString()
Returns a string that represents this instance.
public override string ToString()