Export (0) Print
Expand All
Expand Minimize
This topic has not yet been rated - Rate this topic

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)

[FlagsAttribute] 
public enum ClipStatusFlags
/** @attribute FlagsAttribute() */ 
public enum ClipStatusFlags
FlagsAttribute 
public enum ClipStatusFlags
 Member nameDescription
Supported by the .NET Compact FrameworkAllCombination of all clip flags. 
Supported by the .NET Compact FrameworkBackAll vertices are clipped by the back plane of the viewing frustum. 
Supported by the .NET Compact FrameworkBottomAll vertices are clipped by the bottom plane of the viewing frustum. 
Supported by the .NET Compact FrameworkFrontAll vertices are clipped by the front plane of the viewing frustum. 
Supported by the .NET Compact FrameworkLeftAll vertices are clipped by the left plane of the viewing frustum. 
Supported by the .NET Compact FrameworkRightAll vertices are clipped by the right plane of the viewing frustum. 
Supported by the .NET Compact FrameworkTopAll vertices are clipped by the top plane of the viewing frustum. 

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.

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.

.NET Compact Framework

Supported in: 2.0
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.