D3DDDIARG_SETMATERIAL structure (d3dumddi.h)

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

Syntax

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

Members

[in] Diffuse

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

[in] Ambient

A D3DCOLORVALUE structure that indicates the ambient color of the material.

[in] Specular

A D3DCOLORVALUE structure that indicates the specular color of the material.

[in] Emissive

A D3DCOLORVALUE structure that indicates the emissive color of the material.

[in] Power

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

Requirement Value
Minimum supported client Available in Windows Vista and later versions of the Windows operating systems.
Header d3dumddi.h (include D3dumddi.h)

See also

SetMaterial