SpriteFlags - перечисление
Обновлен: Ноябрь 2007
Defines flags used to specify sprite rendering options.
Это перечисление имеет атрибут FlagsAttribute, поддерживающий побитовое соединение составляющих его значений.
Пространство имен: Microsoft.WindowsMobile.DirectX.Direct3D
Сборка: Microsoft.WindowsMobile.DirectX (в Microsoft.WindowsMobile.DirectX.dll)
Синтаксис
'Декларация
<FlagsAttribute> _
Public Enumeration SpriteFlags
'Применение
Dim instance As SpriteFlags
[FlagsAttribute]
public enum SpriteFlags
[FlagsAttribute]
public enum class SpriteFlags
public enum SpriteFlags
Члены
Имя члена | Описание | |
---|---|---|
None | Resolves the value to 0. | |
DoNotSaveState | Prevents the device state from being saved or restored when Begin or End is called. | |
DoNotModifyRenderState | Specifies no changes to the device render state when Begin is called. | |
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. | |
Billboard | Rotates each sprite around its center so that it is facing the viewer. SetWorldViewLH or SetWorldViewRH must be called first. | |
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. | |
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. | |
SortDepthFrontToBack | Sorts sprites by depth in front-to-back order prior to drawing. This option is recommended when drawing opaque sprites of varying depths. | |
SortDepthBackToFront | Sorts 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 для карманных ПК
Среды .NET Framework и .NET Compact Framework поддерживают не все версии каждой платформы. Поддерживаемые версии перечислены в разделе Требования к системе для .NET Framework.
Сведения о версии
.NET Compact Framework
Поддерживается в версиях: 3.5, 2.0
См. также
Ссылки
Microsoft.WindowsMobile.DirectX.Direct3D - пространство имен
Другие ресурсы
Мобильное программирование Direct3D в .NET Compact Framework