Compartir a través de


ClipStatusFlags Enumeration

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Defines the current clip status.

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 ClipStatusFlags
'Usage
Dim instance As ClipStatusFlags
[FlagsAttribute]
public enum ClipStatusFlags
[FlagsAttribute]
public enum class ClipStatusFlags
[<FlagsAttribute>]
type ClipStatusFlags

Members

Member name Description
Supported by the .NET Compact Framework Left All vertices are clipped by the left plane of the viewing frustum.
Supported by the .NET Compact Framework Right All vertices are clipped by the right plane of the viewing frustum.
Supported by the .NET Compact Framework Top All vertices are clipped by the top plane of the viewing frustum.
Supported by the .NET Compact Framework Bottom All vertices are clipped by the bottom plane of the viewing frustum.
Supported by the .NET Compact Framework Front All vertices are clipped by the front plane of the viewing frustum.
Supported by the .NET Compact Framework Back All vertices are clipped by the back plane of the viewing frustum.
Supported by the .NET Compact Framework All Combination of all clip flags.

Remarks

When clipping is enabled during vertex processing (by ProcessVertices, DrawPrimitives, or other drawing functions), Direct3D computes a clip code for every vertex. The clip code is a combination of ClipStatusFlags. When a vertex is outside a particular clipping plane, the corresponding bit is set in the clip code. Direct3D maintains the clip status using ClipStatus, which has ClipIntersection and ClipUnion properties. ClipUnion is a bitwise OR of all vertex clip codes, and ClipIntersection is a bitwise AND of all vertex clip codes. Initial values are 0 for ClipUnion and 0xFFFFFFFF for ClipIntersection.

When the Clipping property is set to false, ClipUnion and ClipIntersection are set to 0. Direct3D updates the clip status during drawing calls. To compute clip status for a particular object, set ClipUnion and ClipIntersection to their initial values and continue drawing.

Platforms

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.

Version Information

.NET Compact Framework

Supported in: 3.5, 2.0

See Also

Reference

Microsoft.WindowsMobile.DirectX.Direct3D Namespace

Other Resources

Mobile Direct3D Programming in the .NET Compact Framework