Microsoft DirectX 8.1 (C++)

IDirect3DDevice8::GetViewport

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

  Header: Declared in D3d8.h.
  Import Library: Use D3d8.lib.

See Also

IDirect3DDevice8::SetViewport