IDirect3DDevice9::GetScissorRect method (d3d9helper.h)

Gets the scissor rectangle.

Syntax

HRESULT GetScissorRect(
  [out] RECT *pRect
);

Parameters

[out] pRect

Type: RECT*

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

Return value

Type: HRESULT

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 (Direct3D 9) for further information on the use of rectangles in DirectX.

Requirements

Requirement Value
Target Platform Windows
Header d3d9helper.h (include D3D9.h)
Library D3D9.lib

See also

IDirect3DDevice9