Microsoft SDK for Java

createShadow

This method of the Direct3dRM Class creates a shadow by using the specified visual and light, projecting the shadow onto the specified plane. The shadow is a visual that should be added to the frame that contains the visual.

Syntax

public Direct3dRMVisual createShadow(Direct3dRMVisual v, Direct3dRMLight , float px, float py, float pz, float nx, float ny, float nz);

Return Value

Returns the Direct3dRMVisual object if successful; otherwise, null.

Parameters

v The Direct3dRMVisual object that is casting the shadow.
l The Direct3dRMLight object that is the light source.
px The x component of the plane that the shadow is to be projected on.
py The y component of the plane that the shadow is to be projected on.
pz The z component of the plane that the shadow is to be projected on.
nx The x component of the normal to the plane that the shadow is to be projected on.
ny The y component of the normal to the plane that the shadow is to be projected on.
nz The z component of the normal to the plane that the shadow is to be projected on.

© 1999 Microsoft Corporation. All rights reserved. Terms of use.