Microsoft DirectX 8.1 (Visual Basic)

Direct3DDevice8.GetViewport

Retrieves the viewport parameters currently set for the device.

object.GetViewport( _ 
    Viewport As D3DVIEWPORT8)

Parts

object
Object expression that resolves to a Direct3DDevice8 object.
Viewport
A D3DVIEWPORT8 type, representing the returned viewport parameters.

Error Codes

An error is raised and Err.Number may be set to D3DERR_INVALIDCALL if the Viewport parameter is invalid.

For information on trapping errors, see the Microsoft® Visual Basic® Error Handling topic.

See Also

Direct3DDevice8.SetViewport