Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Expand Minimize

IDirect3DDevice9::SetScissorRect method

Sets the scissor rectangle.

Syntax


HRESULT SetScissorRect(
  [inconst RECT *pRect
);

Parameters

pRect [in]

Type: const RECT*

Pointer to a RECT structure that defines the rendering area within the render target if scissor test is enabled. This parameter may not be NULL.

Return value

Type: HRESULT

If the method succeeds, the return value is D3D_OK. If the method fails, the return value can be D3DERR_INVALIDCALL.

Remarks

The scissor rectangle is used as a rectangular clipping region.

See Rectangles (Direct3D 9) for further information on the use of rectangles in DirectX.

Requirements

Header

D3D9.h

Library

D3D9.lib

 

 

Community Additions

ADD
Show:
© 2015 Microsoft