IDirect3DRM and IDirect3DRM2 Interfaces
Applications use the methods of the IDirect3DRM interface to create Direct3DRM objects and work with system-level variables. For a reference to the methods of this interface, see IDirect3DRM or IDirect3DRM2.
Applications use the methods of the IDirect3DRMDevice and IDirect3DRMDevice2 interfaces to interact with the output device. An IDirect3DRMDevice created from the IDirect3DRM interface works with an IDirect3DDevice Immediate-Mode device. An IDirect3DRMDevice2 created from the IDirect3DRM2 interface, or initialized by the IDirect3DRMDevice2::InitFromClipper, IDirect3DRMDevice::InitFromD3D, or IDirect3DRMDevice2::InitFromSurface method works with an IDirect3DDevice2 Immediate-Mode device. The IDirect3DDevice2 device supports the DrawPrimitive interface as well as execute buffers, and is required for progressive meshes and for alpha blending and sorting of transparent objects.
IDirect3DRM2 supports all the methods in IDirect3DRM. An additional method is included IDirect3DRM2::CreateProgressiveMesh. The IDirect3DRM2::CreateDeviceFromSurface methods, IDirect3DRM2::CreateDeviceFromD3D, and IDirect3DRM2::CreateDeviceFromClipper all create a DIRECT3DRMDEVICE2 object. The IDirect3DRM2::CreateViewport method creates a viewport on a DIRECT3DRMDEVICE2 object. The IDirect3DRM2::LoadTexture and IDirect3DRM2::LoadTextureFromResource methods load a DIRECT3DRMTEXTURE2 object.
The IDirect3DRM COM interface is created by calling the Direct3DRMCreate function. To access the IDirect3DRM2 COM interface, create an IDirect3DRM object with Direct3DRMCreate, then query for IDirect3DRM2 from IDirect3DRM.
The methods of the IDirect3DRM and IDirect3DRM2 interfaces create the following objects:
·Animations and animation sets
·Devices
·Faces
·Frames
·Generic uninitialized objects
·Lights
·Materials
·Meshes and mesh builders
·Shadows
·Textures
·UserVisuals
·Viewports
·Wraps
In addition, the IDirect3DRM2::CreateProgressiveMesh creates a DIRECT3DRMPROGRESSIVEMESH object.