Platform SDK: DirectX

Direct3DDevice7.GetViewport

The Direct3DDevice7.GetViewport method retrieves the viewport parameters currently set for the device.

object.GetViewport( _ 
    Viewport As D3DVIEWPORT7)

Parameters

object
Object expression that resolves to a Direct3DDevice7 object.
Viewport
A D3DVIEWPORT7 type that will be filled with the current viewport parameters if the call succeeds.

Return Values

If the method fails, an error is raised and Err.Number may be set to DDERR_INVALIDPARAMS if the Viewport parameter is invalid.

See Also

Direct3DDevice7.SetViewport