Microsoft SDK for Java

Direct3dRMLight Class

Applications use the methods of the Direct3dRMLight Class of the com.ms.directX package to interact with light objects.

public class Direct3dRMLight implements IDirect3dRMLight
{
  // Methods
  public int getColor();
  public float getConstantAttenuation();
  public Direct3dRMFrame getEnableFrame();
  public float getLinearAttenuation();
  public float getPenumbra();
  public float getQuadraticAttenuation();
  public float getRange();
  public int getType();
  public float getUmbra();
  public void setColor(int c);
  public void setColorRGB(float r, float g, float b);
  public void setConstantAttenuation(float atn);
  public void setEnableFrame(Direct3dRMFrame f);
  public void setLinearAttenuation(float atn);
  public void setPenumbra(float p);
  public void setQuadraticAttenuation(float atn);
  public void setRange(float rng);
  public void setType(int t);
  public void setUmbra(float u);
}

The Direct3dRMLight class inherits the following methods from the Direct3dRMObject class:

addDestroyCallback
duplicate
deleteDestroyCallback
getAppData
getClassName
getName
setAppData
setName

The Direct3dRMLight object is obtained by calling the createLight or createLightRGB method.

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