SpriteSortMode Enumeration (Microsoft.Xna.Framework.Graphics)

Defines sprite sort rendering options.

Namespace: Microsoft.Xna.Framework.Graphics
Assembly: MonoGame.Framework (MonoGame.Framework.dll 3.8.0.1082)
  • C#
  • VB
  • F#
public enum SpriteSortMode

Syntax for VB is not yet implemented.

Syntax for F# is not yet implemented.

The SpriteSortMode type exposes the following members.

  Platforms Name Description
BackToFront Same as Deferred, except sprites are sorted by depth in back-to-front order prior to drawing. 
Deferred All sprites are drawing when End() invokes, in order of draw call sequence. Depth is ignored. 
FrontToBack Same as Deferred, except sprites are sorted by depth in front-to-back order prior to drawing. 
Immediate Each sprite is drawing at individual draw call, instead of End(). Depth is ignored. 
Texture Same as Deferred, except sprites are sorted by texture prior to drawing. Depth is ignored. 
Top
Supported in:

    
 Windows DirectX Desktop
    
 Linux Desktop
    
 Windows OpenGL Desktop
    
 Web