Back to monogame.net
Show / Hide Table of Contents

Enum SpriteSortMode

Defines sprite sort rendering options.

Namespace: Microsoft.Xna.Framework.Graphics
Assembly: MonoGame.Framework.dll
Syntax
public enum SpriteSortMode

Fields

Name Description
BackToFront

Same as Deferred, except sprites are sorted by depth in back-to-front order prior to drawing. An unstable sort is used, which means sprites with equal depth may not have their order preserved.

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. An unstable sort is used, which means sprites with equal depth may not have their order preserved.

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.

Back to top Generated by DocFX