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

IDirect3DDevice9::GetViewport Method


Retrieves the viewport parameters currently set for the device.

Syntax

HRESULT GetViewport(      

    D3DVIEWPORT9 *pViewport );

Parameters

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

Return Value

If the method succeeds, the return value is D3D_OK.

D3DERR_INVALIDCALL is returned if the pViewport parameter is invalid.

Remarks

Typically, methods that return state will not work on a device that is created using D3DCREATE_PUREDEVICE. This method however, will work even on a pure device.

See Also

IDirect3DDevice9::SetViewport


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