Important:
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.
A version of this page is also available for
4/8/2010

This structure is used to describe the current material.

Syntax

typedef struct _D3DMMATERIAL {
  D3DMCOLORVALUE 
Diffuse;
  D3DMCOLORVALUE 
Ambient;
  D3DMCOLORVALUE 
Specular;
  float	
Power;
} D3DMMATERIAL;

Members

Diffuse

A D3DMCOLORVALUEstructure describing the color of diffuse light that will be reflected from the material.

Ambient

A D3DMCOLORVALUEstructure describing the color of ambient light that will be reflected from the material.

Specular

A D3DMCOLORVALUEstructure describing the color of specular light that will be reflected from the material.

Power

A float value describing the size of the specular highlight that this material has.

Remarks

The members of the D3DMCOLORVALUEstructure are of the type D3DMVALUE. Therefore, they can be either IEEE 32 bit floating point values or 16.16 fixed point values. You must provide the interpretations for these members' values by setting the D3DMFORMATvalue in any method calls that use D3DMMATERIAL.

Requirements

Header d3dmtypes.h
Windows Embedded CE Windows CE 5.0 and later
Windows Mobile Windows Mobile Version 5.0 and later

See Also