Blt
Expand Minimize

SetScissorRect routine

The SetScissorRect function marks a portion of a render target that rendering is confined to.

Syntax


PFND3DDDI_SETSCISSORRECT SetScissorRect;

__checkReturn HRESULT APIENTRY SetScissorRect(
  _In_  HANDLE hDevice,
  _In_  const RECT *pRect
)
{ ... }

Parameters

hDevice [in]

A handle to the display device (graphics context).

pRect [in]

A pointer to a RECT structure that specifies the 2-D portion of the render target to confine rendering to.

Return value

SetScissorRect returns S_OK or an appropriate error result if the 2-D resource is not successfully marked.

Requirements

Version

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

Header

D3dumddi.h (include D3dumddi.h)

See also

D3DDDI_DEVICEFUNCS
RECT

 

 

Send comments about this topic to Microsoft

Show:
© 2014 Microsoft