Direct3D Retained Mode Animated Header --IDirect3DRMShadow Direct3D Retained Mode Animated Header --IDirect3DRMShadow * Microsoft Direct3D Retained Mode SDK
*Index  *Topic Contents
*Previous Topic: IDirect3DRMProgressiveMesh
*Next Topic: IDirect3DRMTexture

IDirect3DRMShadow


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.


IDirect3DRMShadow::Init

IDirect3DRMShadow

Initializes a Direct3DRMShadow object.

HRESULT Init(
  LPDIRECT3DRMVISUAL lpD3DRMVisual,
  LPDIRECT3DRMLIGHT lpD3DRMLight,
  D3DVALUE px,
  D3DVALUE py,
  D3DVALUE pz,
  D3DVALUE nx,
  D3DVALUE ny,
  D3DVALUE nz
  );

Parameters
lpD3DRMVisual
Address of the Direct3DRMVisual object casting the shadow.
lpD3DRMLight
Address of the Direct3DRMLight object that provides the light that defines the shadow.
px, py, and pz
Coordinates of a point on the plane on which the shadow is cast.
nx, ny, and nz
Coordinates of the normal vector of the plane on which the shadow is cast.
Return Values

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

© 1998 Microsoft Corporation. All rights reserved. Terms of Use.

*Top of Page