Applications use the IDirect3DRMShadow interface to initialize Direct3DRMShadow objects. Note that this initialization is not necessary if the application uses the IDirect3DRM::CreateShadow method; it is required only if the application uses the IDirect3DRM::CreateObject method to create the shadow.
This section is a reference to the methods of the IDirect3DRMShadow interface. For a conceptual overview, see IDirect3DRMShadow Interface.
The IDirect3DRMShadow interface supports the Init method.
The IDirect3DRMShadow interface, like all Component Object Model (COM) interfaces, inherits the IUnknown interface methods. The IUnknown interface supports the following three methods:
| AddRef |
| QueryInterface |
| Release |
In addition, the IDirect3DRMShadow interface inherits the following methods from the IDirect3DRMObject interface:
| AddDestroyCallback |
| Clone |
| DeleteDestroyCallback |
| GetAppData |
| GetClassName |
| GetName |
| SetAppData |
| SetName |
The Direct3DRMShadow object is obtained by using the IDirect3DRM::CreateShadow method.
Initializes a Direct3DRMShadow object.
HRESULT Init(
LPDIRECT3DRMVISUAL lpD3DRMVisual,
LPDIRECT3DRMLIGHT lpD3DRMLight,
D3DVALUE px,
D3DVALUE py,
D3DVALUE pz,
D3DVALUE nx,
D3DVALUE ny,
D3DVALUE nz
);
Returns D3DRM_OK if successful, or an error otherwise. For a list of possible errors, see Direct3D Retained Mode Return Values.
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.