Share via


ClipStatusFlags Enumeration

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
/** @attribute FlagsAttribute() */ 
public enum ClipStatusFlags
FlagsAttribute 
public enum ClipStatusFlags

Members

  Member name Description
Supported by the .NET Compact Framework All Combination of all clip flags. 
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 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 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. 

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 Pocket PC, Windows Mobile for Smartphone

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

Version Information

.NET Compact Framework

Supported in: 2.0

See Also

Reference

Microsoft.WindowsMobile.DirectX.Direct3D Namespace

Other Resources

Mobile Direct3D Programming