Freigeben über


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)

Property Value

a ClipStatus structure that describes the current clip status.

Exceptions

Exception type Condition

InvalidCallException

One of the arguments is invalid.

Remarks

Clip status is used during software vertex processing; therefore, this method is not supported on hardware processing devices, whether or not 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 of 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 clip status for a particular object, set ClipUnion and ClipIntersection to their initial values and continue drawing.

.NET Framework Security

  • Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see .

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

Device Class
Device Members
Microsoft.WindowsMobile.DirectX.Direct3D Namespace