Class SpriteEffect
The default effect used by SpriteBatch.
public class SpriteEffect : Effect, IDisposable
- Inheritance
-
SpriteEffect
- Implements
- Inherited Members
Constructors
SpriteEffect(GraphicsDevice)
Creates a new SpriteEffect.
public SpriteEffect(GraphicsDevice device)
Parameters
device
GraphicsDevice
SpriteEffect(SpriteEffect)
Creates a new SpriteEffect by cloning parameter settings from an existing instance.
protected SpriteEffect(SpriteEffect cloneSource)
Parameters
cloneSource
SpriteEffect
Properties
TransformMatrix
An optional matrix used to transform the sprite geometry. Uses Identity if null.
public Matrix? TransformMatrix { get; set; }
Property Value
Methods
Clone()
Creates a clone of the current SpriteEffect instance.
public override Effect Clone()
Returns
OnApply()
Lazily computes derived parameter values immediately before applying the effect.
protected override void OnApply()