Blt
Expand Minimize

SetClipPlane routine

The SetClipPlane function sets a clip plane.

Syntax


PFND3DDDI_SETCLIPPLANE SetClipPlane;

__checkReturn HRESULT APIENTRY SetClipPlane(
  _In_  HANDLE                 hDevice,
  _In_  const D3DDDIARG_SETCLIPPLANE *pData
)
{ ... }

Parameters

hDevice [in]

A handle to the display device (graphics context).

pData [in]

A pointer to a D3DDDIARG_SETCLIPPLANE structure that describes the clip plane to set.

Return value

SetClipPlane returns S_OK or an appropriate error result if the clip plane is not successfully set.

Remarks

The coefficients that are passed to SetClipPlane in the Plane array of the D3DDDIARG_SETCLIPPLANE structure that is pointed to by pData are used in the general plane equation. For more information about the general plane equation, see the Remarks section of D3DDDIARG_SETCLIPPLANE.

Requirements

Target platform

Desktop

Version

Available in Windows Vista and later versions of the Windows operating systems.

Header

D3dumddi.h (include D3dumddi.h)

See also

D3DDDIARG_SETCLIPPLANE
D3DDDI_DEVICEFUNCS

 

 

Send comments about this topic to Microsoft

Show:
© 2015 Microsoft