IDirect3DDevice9::GetScissorRect

Gets the scissor rectangle.

HRESULT GetScissorRect(
  RECT * pRect
);

Parameters

pRect
[out] Returns a pointer to a RECT structure that defines the rendering area within the render target if scissor test is enabled.

Return Values

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

Remarks

The scissor rectangle is used as a rectangular clipping region.

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

Requirements

Header: Declared in D3d9.h.