d3d9.dllSetScissorRect
Microsoft DirectX 9.0 SDK Update (October 2004)

IDirect3DDevice9::SetScissorRect Method


Sets the scissor rectangle.

Syntax

HRESULT SetScissorRect(      

    CONST RECT *pRect );

Parameters

pRect
[in] Pointer to a RECT World Wide Web link structure that defines the rendering area within the render target if scissor test is enabled. This parameter may not be NULL.

Return Value

If the method succeeds, the return value is D3D_OK.

If the method fails, the return value can be

D3DERR_INVALIDCALLThe method call is invalid. For example, a method's parameter may have an invalid value.


Remarks

The scissor rectangle is used as a rectangular clipping region.

See Rectangles for further information on the use of rectangles in Microsoft DirectX.



© 2004 Microsoft Corporation. All rights reserved.
Feedback? Please provide us with your comments on this topic.
For more help, visit the DirectX Developer Center.