Direct3DRMVisual does not provide any Microsoft® Direct3D® Retained Mode methods, but the interfaces for the visual objects derive from the Direct3DRMVisual interface.
Visuals are objects that can be rendered in a scene. Visuals are visible only when they are added to a frame in that scene. An application can add a visual to a frame by using the Direct3DRMFrame3.AddVisual method. The frame provides the visual with position and orientation for rendering.
A visual can be cast through the following code.
Sub test(visual As Direct3DRMVisual) Dim mb As Direct3DRMMeshBuilder3 Dim mesh As Direct3DRMMesh Dim pmesh As Direct3DRMProgressiveMesh Dim shadow As Direct3DRMShadow2 Select Case UCase(visual.GetClassName()) Case "MESHBUILDER" Set mb = visual Case "MESH" Set mesh = visual Case "PROGRESSIVEMESH" Set pmesh = visual Case "SHADOW" Set shadow = visual End Select 'Do whatever End Sub
The following interfaces derive from Direct3DRMVisual.
Top of Page
© 2000 Microsoft and/or its suppliers. All rights reserved. Terms of Use.