Packages
 In this topic

*Fields

 

Packages   PreviousThis PackageNext
Package com.ms.directX   Previous This
Package
Next

 


Class D3dMaterialDesc

public final class D3dMaterialDesc
{
  // Fields
  public float ambientA;
  public float ambientB;
  public float ambientG;
  public float ambientR;
  public float diffuseA;
  public float diffuseB;
  public float diffuseG;
  public float diffuseR;
  public float dvPower;
  public float emissiveA;
  public float emissiveB;
  public float emissiveG;
  public float emissiveR;
  public float power;
  public int rampSize;
  public float specularA;
  public float specularB;
  public float specularG;
  public float specularR;
  public int textureHandle;
}

Specifies material properties in calls to the getMaterial and setMaterial methods.

See also Direct3dMaterial.

Fields

ambientA
The alpha element of the material's ambient color.
ambientB
The blue element of the material's ambient color.
ambientG
The green element of the material's ambient color.
ambientR
The red element of the material's ambient color.
diffuseA
The alpha element of the material's diffuse color.
diffuseB
The blue element of the material's diffuse color.
diffuseG
The green element of the material's diffuse color.
diffuseR
The red element of the material's diffuse color.
dvPower
The sharpness of specular highlights.
emissiveA
The alpha element of the material's emissive color.
emissiveB
The blue element of the material's emissive color.
emissiveG
The green element of the material's emissive color.
emissiveR
The red element of the material's emissive color.
power
Value specifying the sharpness of specular highlights.
rampSize
Size of the color ramp. For the monochromatic (ramp) driver, this value must be less than or equal to 1 for materials assigned to the background; otherwise, the background is not displayed. This behavior also occurs when a texture that is assigned to the background has an associated material whose rampSize field is greater than 1.
specularA
The alpha element of the material's specular color.
specularB
The blue element of the material's specular color.
specularG
The green element of the material's specular color.
specularR
The red element of the material's specular color.
textureHandle
The handle of the texture map.

upnrm.gif © 1998 Microsoft Corporation. All rights reserved. Terms of use.