SpriteEffect Class (Microsoft.Xna.Framework.Graphics)

The default effect used by SpriteBatch.

Namespace: Microsoft.Xna.Framework.Graphics
Assembly: MonoGame.Framework (MonoGame.Framework.dll
  • C#
  • VB
  • F#
public class SpriteEffect : Effect

Syntax for VB is not yet implemented.

Syntax for F# is not yet implemented.

The SpriteEffect type exposes the following members.

  Platforms Name Description
SpriteEffect(GraphicsDevice) Creates a new SpriteEffect. 
SpriteEffect(SpriteEffect) Creates a new SpriteEffect by cloning parameter settings from an existing instance. 
  Platforms Name Description
CurrentTechnique  (Inherited from Effect.)
GraphicsDevice  (Inherited from GraphicsResource.)
IsDisposed  (Inherited from GraphicsResource.)
Name  (Inherited from GraphicsResource.)
Parameters  (Inherited from Effect.)
Tag  (Inherited from GraphicsResource.)
Techniques  (Inherited from Effect.)
TransformMatrix An optional matrix used to transform the sprite geometry. Uses Identity if null. 
  Platforms Name Description
Clone Creates a clone of the current SpriteEffect instance. (Overrides Effect.Clone().)
Dispose(bool) The method that derived classes should override to implement disposing of managed and native resources. (Inherited from Effect.)
Dispose()  (Inherited from GraphicsResource.)
Finalize  (Inherited from GraphicsResource.)
GraphicsDeviceResetting Called before the device is reset. Allows graphics resources to invalidate their state so they can be recreated after the device reset. Warning: This may be called after a call to Dispose() up until the resource is garbage collected. (Inherited from Effect.)
OnApply Lazily computes derived parameter values immediately before applying the effect. (Overrides Effect.OnApply().)
ToString  (Inherited from GraphicsResource.)
  Platforms Name Description
Disposing  (Inherited from GraphicsResource.)
Supported in:

 Windows DirectX Desktop
 Linux Desktop
 Windows OpenGL Desktop