Applications use the methods of the Direct3DRMViewportArray interface to organize viewport objects. The viewport array is zero based (0 to N-1).
The Direct3DRMViewportArray interface supports the following methods.
GetElement |
GetSize |
The Direct3DRMViewportArray object is obtained by calling the Direct3DRMDevice3.GetViewports method.
Retrieves a specified element in a Direct3DRMViewportArray object.
Syntax
object.GetElement(index As Long) As Direct3DRMViewport2
Parts
- object
- Object expression that resolves to a Direct3DRMViewportArray object.
- index
- Element in the array.
Return Value
An Direct3DRMViewport2 object.
Error Values
For a list of possible errors, see Direct3D Retained Mode Error Values.
Retrieves the number of elements contained in a Direct3DRMViewportArray object.
Syntax
object.GetSize( ) As Long
Parts
- object
- Object expression that resolves to a Direct3DRMViewportArray object.
Return Value
Returns the number of elements.
Error Values
For a list of possible errors, see Direct3D Retained Mode Error Values.
Top of Page
© 1999 Microsoft and/or its suppliers. All rights reserved. Terms of Use.