Share via


IDirect3DDevice8::GetViewport

This method retrieves the viewport parameters currently set for the device.

HRESULT GetViewport(
  D3DVIEWPORT8* pViewport
);

Parameters

  • pViewport
    [out] Pointer to a D3DVIEWPORT8 structure, representing the returned viewport parameters.

Return Values

If the method succeeds, the return value is D3D_OK.

D3DERR_INVALIDCALL is returned if the pViewport parameter is invalid.

Requirements

OS Versions: Windows CE .NET 4.0 and later.
Header: D3d8.h.
Link Library: D3d8.lib.

See Also

IDirect3DDevice8::SetViewport | D3DVIEWPORT8 | IDirect3DDevice8

 Last updated on Thursday, April 08, 2004

© 1992-2003 Microsoft Corporation. All rights reserved.