Package com.ms.com.directX Previous
Previous
Microsoft Packages
Microsoft Packages
Index
Index
Next
Next

Class d3drmShadow

Applications use the d3drmShadow class to initialize shadow objects. Note that this initialization is not necessary if the application calls the CreateShadow method; it is required only if the application calls the CreateObject method to create the shadow.

public class d3drmShadow implements Id3drmShadow
{
  public void InternalSetObject(IUnknown lpdd);
  public IUnknown InternalGetObject();
  public void AddDestroyCallback(Id3drmCallback fn, IUnknown Arg);
  public void DeleteDestroyCallback(Id3drmCallback fn, IUnknown args);
  public d3drmShadow Clone();
  public void SetAppData(int data);
  public int GetAppData();
  public void SetName(String name);
  public String GetName();
  public String GetClassName();
  public void Init(d3drmVisual v, d3drmLight l, float px, float py, float pz, float nx, float ny, float nz);
}

There is the Init method.

In addition, the d3drmShadow class inherits the following methods from the d3drmObject class:
AddDestroyCallback
Clone
DeleteDestroyCallback
GetAppData
GetClassName
GetName
SetAppData
SetName

The d3drmShadow object is obtained by calling the CreateShadow method.

Init

public void Init(d3drmVisual v, d3drmLight l, float px, float py, float pz, float nx, float ny, float nz);

Initializes a d3drmShadow object.

Return Value:

No return value.

ParameterDescription
v The d3drmVisual object casting the shadow.
l The d3drmLight 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.



Top© 1996 Microsoft Corporation. All rights reserved.