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)
Syntax
'Declaration
<FlagsAttribute> _
Public Enumeration SpriteFlags
'Usage
Dim instance As SpriteFlags
[FlagsAttribute]
public enum SpriteFlags
[FlagsAttribute]
public enum class SpriteFlags
/** @attribute FlagsAttribute() */
public enum SpriteFlags
FlagsAttribute
public enum SpriteFlags
Members
Member name | Description | |
---|---|---|
AlphaBlend | Enables 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. | |
Billboard | Rotates each sprite around its center so that it is facing the viewer. SetWorldViewLH or SetWorldViewRH must be called first. | |
DoNotModifyRenderState | Specifies no changes to the device render state when Begin is called. | |
DoNotSaveState | Prevents the device state from being saved or restored when Begin or End is called. | |
None | Resolves the value to 0. | |
ObjectSpace | Specifies 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. | |
SortDepthBackToFront | Sorts sprites by depth in back-to-front order prior to drawing. This option is recommended when drawing transparent sprites of varying depths. | |
SortDepthFrontToBack | Sorts sprites by depth in front-to-back order prior to drawing. This option is recommended when drawing opaque sprites of varying depths. | |
SortTexture | Sorts 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. |
Platforms
Windows CE, Windows Mobile for Pocket PC, Windows Mobile for Smartphone
The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.
Version Information
.NET Compact Framework
Supported in: 2.0
See Also
Reference
Microsoft.WindowsMobile.DirectX.Direct3D Namespace