SpriteEffect Class (Microsoft.Xna.Framework.Graphics)

The default effect used by SpriteBatch.
System.Object
   Microsoft.Xna.Framework.Graphics.GraphicsResource
      Microsoft.Xna.Framework.Graphics.Effect
         Microsoft.Xna.Framework.Graphics.SpriteEffect

Namespace: Microsoft.Xna.Framework.Graphics
Assembly: MonoGame.Framework (MonoGame.Framework.dll 3.8.0.1082)
  • 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. 
Top
  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. 
Top
  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.)
Top
  Platforms Name Description
Disposing  (Inherited from GraphicsResource.)
Top
Supported in:

    
 Windows DirectX Desktop
    
 Linux Desktop
    
 Windows OpenGL Desktop
    
 Web