IDirect3DRMShadow::Init

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 return codes, see Direct3D Retained-Mode Return Values.