This documentation is archived and is not being maintained.

SpriteFlags Enumeration

Defines flags used to specify sprite rendering options.

This enumeration has a FlagsAttribute attribute that allows a bitwise combination of its member values.

Namespace:  Microsoft.WindowsMobile.DirectX.Direct3D
Assembly:  Microsoft.WindowsMobile.DirectX (in Microsoft.WindowsMobile.DirectX.dll)

public enum SpriteFlags

Member nameDescription
Supported by the .NET Compact FrameworkNoneResolves the value to 0.
Supported by the .NET Compact FrameworkDoNotSaveStatePrevents the device state from being saved or restored when Begin or End is called.
Supported by the .NET Compact FrameworkDoNotModifyRenderStateSpecifies no changes to the device render state when Begin is called.
Supported by the .NET Compact FrameworkObjectSpaceSpecifies no modification of the world, view, and projection transforms. The transforms currently set to the device are used to transform sprites when the batched sprites are drawn (that is, when Begin or End is called). If this option is not specified, the world, view, and projection transforms are modified so that sprites are drawn in screen-space coordinates.
Supported by the .NET Compact FrameworkBillboardRotates each sprite around its center so that it is facing the viewer. SetWorldViewLH or SetWorldViewRH must be called first.
Supported by the .NET Compact FrameworkAlphaBlendEnables alpha blending with AlphaTestEnable set to true (for nonzero alpha). SourceAlpha is the source blend state, and InvSourceAlpha is the destination blend state in calls to RenderStateManager. The Font class requires this flag to be set when drawing text.
Supported by the .NET Compact FrameworkSortTextureSorts sprites by texture prior to drawing. This option is recommended when drawing non-overlapping sprites of uniform depth; for example, drawing screen-aligned text with Font.
Supported by the .NET Compact FrameworkSortDepthFrontToBackSorts sprites by depth in front-to-back order prior to drawing. This option is recommended when drawing opaque sprites of varying depths.
Supported by the .NET Compact FrameworkSortDepthBackToFrontSorts sprites by depth in back-to-front order prior to drawing. This option is recommended when drawing transparent sprites of varying depths.

Windows CE, Windows Mobile for Smartphone, Windows Mobile for Pocket PC

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Compact Framework

Supported in: 3.5, 2.0