IDirect3DRMViewportArray

Applications use the methods of the IDirect3DRMViewportArray interface to organize viewport objects. This section is a reference to the methods of this interface. For a conceptual overview, see Viewports.

The IDirect3DRMViewportArray interface supports the following methods:
GetElement
GetSize

The IDirect3DRMViewportArray interface, like all COM interfaces, inherits the IUnknown interface methods. The IUnknown interface supports the following three methods:
AddRef
QueryInterface
Release

The Direct3DRMViewportArray object is obtained by calling the IDirect3DRMDevice3::GetViewports method.

IDirect3DRMViewportArray::GetElement

IDirect3DRMViewportArray

Retrieves a specified element in a Direct3DRMViewportArray object.

Syntax

HRESULT GetElement(
  DWORD index,
  LPDIRECT3DRMVIEWPORT *lplpD3DRMViewport
  );

Parameters

index
Element in the array.
lplpD3DRMViewport
Address that will be filled with a pointer to an IDirect3DRMViewport interface.

Return Value

Returns D3DRM_OK if successful, or an error otherwise. For a list of possible errors, see Direct3D Retained Mode Return Values.

Remarks

You can use QueryInterface to obtain a pointer to the version of IDirect3DRMViewport that you want, for example, IDirect3DRMViewport2. You cannot simply cast the lplpD3DRMViewport parameter to a different version. You must use QueryInterface.

IDirect3DRMViewportArray::GetSize

IDirect3DRMViewportArray

Retrieves the number of elements contained in a Direct3DRMViewportArray object.

Syntax

DWORD GetSize( );

Return Value

Returns the number of elements.


Top of Page Top of Page
© 1999 Microsoft and/or its suppliers. All rights reserved. Terms of Use.