Device.ClipStatus Property
Gets or sets a ClipStatus structure.
Namespace: Microsoft.WindowsMobile.DirectX.Direct3D
Assembly: Microsoft.WindowsMobile.DirectX (in microsoft.windowsmobile.directx.dll)
Syntax
'Declaration
Public Property ClipStatus As ClipStatus
'Usage
Dim instance As Device
Dim value As ClipStatus
value = instance.ClipStatus
instance.ClipStatus = value
public ClipStatus ClipStatus { get; set; }
public:
property ClipStatus ClipStatus {
ClipStatus get ();
void set (ClipStatus value);
}
/** @property */
public ClipStatus get_ClipStatus ()
/** @property */
public void set_ClipStatus (ClipStatus value)
public function get ClipStatus () : ClipStatus
public function set ClipStatus (value : ClipStatus)
Not applicable.
Property Value
A ClipStatus structure that describes the current clip status.
Exceptions
Exception type | Condition |
---|---|
One of the arguments is invalid. |
Remarks
The clip status is used during software vertex processing; therefore, this method is not supported on hardware processing devices, regardless of whether they are pure. For more information about pure devices, see CreateFlags.
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 values. 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 ClipUnion and ClipIntersection members. ClipUnion is a bitwise OR of all vertex clip codes and has an initial value of 0; ClipIntersection is a bitwise AND of all vertex clip codes and has an initial value of 0xFFFFFFFF. When Clipping is set to false, ClipUnion and ClipIntersection are set to 0. Direct3D updates the clip status during drawing calls. To compute the 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 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
Device Class
Device Members
Microsoft.WindowsMobile.DirectX.Direct3D Namespace