D3DDDIARG_SETMATERIAL structure

The D3DDDIARG_SETMATERIAL structure describes the material properties that are used for rendering.

Syntax


typedef struct _D3DDDIARG_SETMATERIAL {
  D3DCOLORVALUE Diffuse;
  D3DCOLORVALUE Ambient;
  D3DCOLORVALUE Specular;
  D3DCOLORVALUE Emissive;
  FLOAT         Power;
} D3DDDIARG_SETMATERIAL;

Members

Diffuse

[in] A D3DCOLORVALUE structure that indicates the diffuse color of the material. For more information about D3DCOLORVALUE, see the Microsoft Windows SDK documentation.

Ambient

[in] A D3DCOLORVALUE structure that indicates the ambient color of the material.

Specular

[in] A D3DCOLORVALUE structure that indicates the specular color of the material.

Emissive

[in] A D3DCOLORVALUE structure that indicates the emissive color of the material.

Power

[in] A FLOAT value that indicates the sharpness of specular highlights. To turn off specular highlights for a material, set Power to 0 (setting Specular to 0 is not enough).

Requirements

Version

Available in Windows Vista and later versions of the Windows operating systems.

Header

D3dumddi.h (include D3dumddi.h)

See also

SetMaterial

 

 

Send comments about this topic to Microsoft

Show: